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

Commit

Permalink
Blacklist 'assetpath' and 'cache-csstext'
Browse files Browse the repository at this point in the history
Prevent these attributes from being copied to each element from polymer-element
declaration.
  • Loading branch information
dfreedm committed Jan 28, 2014
1 parent 15ade29 commit fc7d30f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/declaration/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@
return !this.blackList[name] && name.slice(0,3) !== 'on-';
},
// do not clone these attributes onto instances
blackList: {name: 1, 'extends': 1, constructor: 1, noscript: 1}
blackList: {
name: 1,
'extends': 1,
constructor: 1,
noscript: 1,
assetpath: 1,
'cache-csstext': 1
}
};

// add ATTRIBUTES_ATTRIBUTE to the blacklist
Expand Down

0 comments on commit fc7d30f

Please sign in to comment.