Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Avoid use of __proto__ which is problematic for IE10
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Aug 20, 2014
1 parent 972d6d0 commit 16c9cee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core-drag-drop.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

<polymer-element name="core-drag-drop">
<script>
(function() {
var avatar;

Polymer('core-drag-drop', {

Expand All @@ -35,10 +37,11 @@
},

ready: function() {
if (!this.__proto__.avatar) {
this.__proto__.avatar = document.createElement('core-drag-avatar');
document.body.appendChild(this.avatar);
if (!avatar) {
avatar = document.createElement('core-drag-avatar');
document.body.appendChild(avatar);
}
this.avatar = avatar;
this.dragging = false;
},

Expand Down Expand Up @@ -106,5 +109,6 @@

});

})();
</script>
</polymer-element>

0 comments on commit 16c9cee

Please sign in to comment.