Fix some lint stuff.

This commit is contained in:
Kevin Schaaf 2016-09-09 14:44:14 -07:00
parent 3cf9e020b4
commit 0d1a0ec16a
5 changed files with 8 additions and 7 deletions

View File

@ -13,8 +13,11 @@
],
"globals": {
"CustomElements": true,
"customElements": true,
"HTMLImports": true,
"Polymer": true,
"ShadyDom": true
"ShadyDOM": true,
"ShadyCSS": true,
"ApplyShim": true
}
}

View File

@ -272,7 +272,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}
}
// enforce gesture recognizer order
for (i = 0, r; i < recognizers.length; i++) {
for (let i = 0, r; i < recognizers.length; i++) {
r = recognizers[i];
if (gs[r.name] && !handled[r.name]) {
handled[r.name] = true;

View File

@ -18,11 +18,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
(function() {
'use strict';
class nullClass {};
class nullClass {}
function PatchedHTMLTemplateElement() {
return PatchedHTMLTemplateElement._newInstance;
};
}
PatchedHTMLTemplateElement.prototype = Object.create(HTMLTemplateElement.prototype, {
constructor: {
value: PatchedHTMLTemplateElement

View File

@ -849,7 +849,7 @@ suite('warnings', function() {
});
test('binding to a bad attribute warns', function() {
var el = document.createElement('x-bind-bad-attribute-name');
document.createElement('x-bind-bad-attribute-name');
assert.isTrue(console.warn.calledOnce, 'no warning for setting a bad attribute');
});

View File

@ -857,7 +857,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var s1 = document.createElement('span');
var s2 = document.createElement('span');
var s3 = document.createElement('span');
var composedChildren;
frag.appendChild(s1);
frag.appendChild(s2);
frag.appendChild(s3);
@ -881,7 +880,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var s1 = document.createElement('span');
var s2 = document.createElement('span');
var s3 = document.createElement('span');
var composedChildren;
frag.appendChild(s1);
frag.appendChild(s2);
frag.appendChild(s3);