Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use var keyword when declaring local variable so it doesn't leak to global scope. #1838

Merged
merged 1 commit into from
Jun 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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