Skip to content

Commit

Permalink
Clean up custom-style use of apply shim
Browse files Browse the repository at this point in the history
__mixinsInvalid -> __applyShimInvalid
  • Loading branch information
dfreedm committed Jul 27, 2016
1 parent 8fcb5f6 commit 0859803
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib/apply-shim.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
var currentElementName = currentProto && currentProto.is;
for (var elementName in mixinEntry.dependants) {
if (elementName !== currentElementName) {
mixinEntry.dependants[elementName].__mixinsInvalid = true;
mixinEntry.dependants[elementName].__applyShimInvalid = true;
}
}
}
Expand Down Expand Up @@ -246,7 +246,7 @@
transform: function(styles, elementProto) {
this.__currentElementProto = elementProto;
styleUtil.forRulesInStyles(styles, this._boundTransformRule);
elementProto.__mixinsInvalid = false;
elementProto.__applyShimInvalid = false;
this.__currentElementProto = null;
},
transformRule: function(rule) {
Expand Down
2 changes: 0 additions & 2 deletions src/lib/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@
}
var styleRules = styleUtil.rulesForStyle(e);
if (!targetedBuild) {
applyShim.__currentElementProto = this.__proto__;
styleUtil.forEachRule(styleRules,
function(rule) {
// shim the selector for current runtime settings
Expand All @@ -220,7 +219,6 @@
}
}
);
applyShim.__currentElementProto = null;
}
// custom properties shimming
// (if we use native custom properties, no need to apply any property shimming)
Expand Down
2 changes: 1 addition & 1 deletion src/standard/x-styling.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},

_validateApplyShim: function() {
if (this.__mixinsInvalid) {
if (this.__applyShimInvalid) {
// rerun apply shim
Polymer.ApplyShim.transform(this._styles, this.__proto__);
var cssText = styleTransformer.elementStyles(this);
Expand Down

0 comments on commit 0859803

Please sign in to comment.