Skip to content

Commit

Permalink
Prevent annotator from removing the is-inert attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Feb 2, 2017
1 parent ca3f59d commit 9192514
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/annotations/annotations.html
Expand Up @@ -65,6 +65,8 @@
// null-array (shared empty array to avoid null-checks)
Polymer.nar = [];

var inertEnabled = Polymer.Settings.enableInert;

Polymer.Annotations = {

// preprocess-time
Expand Down Expand Up @@ -367,7 +369,11 @@
node.setAttribute(origName, '');
}
// Remove annotation
node.removeAttribute(origName);
if (inertEnabled && origName === 'is-inert') {
node.setAttribute('is-inert', '');
} else {
node.removeAttribute(origName);
}
// Case hackery: attributes are lower-case, but bind targets
// (properties) are case sensitive. Gambit is to map dash-case to
// camel-case: `foo-bar` becomes `fooBar`.
Expand Down

0 comments on commit 9192514

Please sign in to comment.