Skip to content

Commit

Permalink
Use var keyword when declaring local variable so it doesn't leak to g…
Browse files Browse the repository at this point in the history
…lobal scope.
  • Loading branch information
trevordixon committed Jun 11, 2015
1 parent 1cad7b0 commit afa0ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/style-properties.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
applyElementScopeSelector: function(element, selector, old, viaAttr) {
var c = viaAttr ? element.getAttribute(styleTransformer.SCOPE_NAME) :
element.className;
v = old ? c.replace(old, selector) :
var v = old ? c.replace(old, selector) :
(c ? c + ' ' : '') + this.XSCOPE_NAME + ' ' + selector;
if (c !== v) {
if (viaAttr) {
Expand Down

0 comments on commit afa0ec4

Please sign in to comment.