fix lint errors

This commit is contained in:
Steven Orvell 2016-02-12 19:16:17 -08:00
parent f2c1d4a5eb
commit 7da9a38fcd
3 changed files with 3 additions and 3 deletions

View File

@ -603,7 +603,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
suite('scoped-styling-var', function() {
function assertComputed(element, value, pseudo, name) {
var name = name || 'border-top-width';
name = name || 'border-top-width';
var computed = element.getComputedStyleValue && !pseudo ?
element.getComputedStyleValue(name) :
getComputedStyle(element, pseudo)[name];

View File

@ -203,7 +203,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
return reg.is;
});
function regIndex(styleScope) {
for (var i=0; (r=regList[i]); i++) {
for (var i=0, r; (r=regList[i]); i++) {
if (styleScope.match(new RegExp(r + '\\-?\\d*$'))) {
return i;
}

View File

@ -265,7 +265,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
return reg.is;
});
function regIndex(styleScope) {
for (var i=0; (r=regList[i]); i++) {
for (var i=0, r; (r=regList[i]); i++) {
if (styleScope.match(new RegExp(r + '\\-?\\d*$'))) {
return i;
}