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

Commit

Permalink
Fixed #78
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Nov 4, 2013
1 parent 8aaf3bc commit 40223bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CustomElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ if (useNative) {
// overrides to implement callbacks
// TODO(sjmiles): should support access via .attributes NamedNodeMap
// TODO(sjmiles): preserves user defined overrides, if any
if (prototype.setAttribute._polyfilled) {
return;
}
var setAttribute = prototype.setAttribute;
prototype.setAttribute = function(name, value) {
changeAttribute.call(this, name, value, setAttribute);
Expand All @@ -279,6 +282,7 @@ if (useNative) {
prototype.removeAttribute = function(name) {
changeAttribute.call(this, name, null, removeAttribute);
}
prototype.setAttribute._polyfilled = true;
}

// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/
Expand Down

0 comments on commit 40223bf

Please sign in to comment.