Skip to content

Commit

Permalink
Merge pull request #1838 from trevordixon/patch-1
Browse files Browse the repository at this point in the history
Use var keyword when declaring local variable so it doesn't leak to global scope.
  • Loading branch information
Steve Orvell committed Jun 12, 2015
2 parents 44e807c + 0bc4e44 commit 19758b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/standard/x-styling.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
var globalCached = Boolean(info) && !scopeCached;
// now we have properties and a cached style if one
// is available.
style = this._applyStyleProperties(info);
var style = this._applyStyleProperties(info);
// no cache so store in cache
//console.warn(this, scopeCached, globalCached, info && info._scopeSelector);
if (!scopeCached) {
Expand Down

0 comments on commit 19758b7

Please sign in to comment.