mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
fix lint errors
This commit is contained in:
@@ -470,7 +470,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
return this.root === node.getRootNode();
|
||||
}
|
||||
|
||||
scopeSubtree(container, shouldObserve) {
|
||||
scopeSubtree(container, shouldObserve) { // eslint-disable-line no-unused-vars
|
||||
// TODO(sorvell): replace or remove when ShadyDOM library handles this.
|
||||
// if (!window.ShadyDOM && !window.ShadyDOM.inUse) {
|
||||
// return;
|
||||
@@ -788,7 +788,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
var arr = Polymer.Path.get(this, arrayOrPath);
|
||||
index = arr.indexOf(item);
|
||||
if (index >= 0) {
|
||||
return this.splice(path, index, 1);
|
||||
return this.splice(arrayOrPath, index, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
this._propertiesChanged(this.__data, changedProps, oldProps);
|
||||
}
|
||||
|
||||
_propertiesChanged(inst, currentProps, changedProps, oldProps) {
|
||||
_propertiesChanged(inst, currentProps, changedProps, oldProps) { // eslint-disable-line no-unused-vars
|
||||
}
|
||||
|
||||
_shouldPropChange(value, old) {
|
||||
|
||||
@@ -17,7 +17,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
// can be made that loads custom-style and then polymer.
|
||||
if (window.CustomStyle) {
|
||||
var attr = 'include';
|
||||
CustomStyle.processHook = function(style) {
|
||||
window.CustomStyle.processHook = function(style) {
|
||||
var include = style.getAttribute(attr);
|
||||
if (!include) {
|
||||
return;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"globals": {
|
||||
"assert": true,
|
||||
"sinon": true,
|
||||
"WCT": true
|
||||
"WCT": true,
|
||||
"fixture": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
<dom-module id="child-el">
|
||||
<script>
|
||||
HTMLImports.whenReady(function() {
|
||||
class ChildEl extends BaseEl {
|
||||
class ChildEl extends window.BaseEl {
|
||||
static get is() { return 'child-el' }
|
||||
static get config() {
|
||||
return {
|
||||
@@ -66,7 +66,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
<dom-module id="grand-child-el">
|
||||
<script>
|
||||
HTMLImports.whenReady(function() {
|
||||
class GrandChildEl extends ChildEl {
|
||||
class GrandChildEl extends window.ChildEl {
|
||||
static get is() { return 'grand-child-el' }
|
||||
static get config() {
|
||||
return {
|
||||
@@ -83,7 +83,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
<dom-module id="child-el-with-template">
|
||||
<script>
|
||||
HTMLImports.whenReady(function() {
|
||||
class ChildElWithTemplate extends GrandChildEl {
|
||||
class ChildElWithTemplate extends window.GrandChildEl {
|
||||
static get is() { return 'child-el-with-template' }
|
||||
static get config() {
|
||||
return {
|
||||
|
||||
@@ -85,7 +85,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
<script>
|
||||
HTMLImports.whenReady(function() {
|
||||
|
||||
class SubElement extends MyElement {
|
||||
class SubElement extends window.MyElement {
|
||||
|
||||
static get is() { return 'sub-element'; }
|
||||
|
||||
@@ -180,7 +180,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
}
|
||||
}
|
||||
|
||||
class SubMixinElement extends MyMixin(SubElement) {
|
||||
class SubMixinElement extends MyMixin(window.SubElement) {
|
||||
|
||||
static get is() { return 'sub-mixin-element'; }
|
||||
|
||||
@@ -234,7 +234,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
<script>
|
||||
HTMLImports.whenReady(function() {
|
||||
|
||||
class SubNewTemplate extends MyElement {
|
||||
class SubNewTemplate extends window.MyElement {
|
||||
static get is() { return 'sub-new-template'; }
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
test('instanceof', function() {
|
||||
assert.instanceOf(el, HTMLElement);
|
||||
assert.instanceOf(el, Polymer.Element);
|
||||
assert.instanceOf(el, MyElement);
|
||||
assert.instanceOf(el, window.MyElement);
|
||||
});
|
||||
|
||||
test('lifecycle', function() {
|
||||
@@ -332,8 +332,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
test('instanceof', function() {
|
||||
assert.instanceOf(el, HTMLElement);
|
||||
assert.instanceOf(el, Polymer.Element);
|
||||
assert.instanceOf(el, MyElement);
|
||||
assert.instanceOf(el, SubElement);
|
||||
assert.instanceOf(el, window.MyElement);
|
||||
assert.instanceOf(el, window.SubElement);
|
||||
});
|
||||
|
||||
test('lifecycle', function() {
|
||||
@@ -393,9 +393,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
test('instanceof', function() {
|
||||
assert.instanceOf(el, HTMLElement);
|
||||
assert.instanceOf(el, Polymer.Element);
|
||||
assert.instanceOf(el, MyElement);
|
||||
assert.instanceOf(el, SubElement);
|
||||
assert.instanceOf(el, SubMixinElement);
|
||||
assert.instanceOf(el, window.MyElement);
|
||||
assert.instanceOf(el, window.SubElement);
|
||||
assert.instanceOf(el, window.SubMixinElement);
|
||||
});
|
||||
|
||||
test('lifecycle', function() {
|
||||
|
||||
@@ -76,7 +76,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
<script>
|
||||
HTMLImports.whenReady(function() {
|
||||
|
||||
class SubElement extends MyElement {
|
||||
class SubElement extends window.MyElement {
|
||||
|
||||
static get is() { return 'sub-element'; }
|
||||
|
||||
@@ -129,7 +129,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
assert.instanceOf(el, HTMLElement);
|
||||
assert.instanceOf(el, Polymer.Element);
|
||||
assert.instanceOf(el, Polymer.LegacyElement);
|
||||
assert.instanceOf(el, MyElement);
|
||||
assert.instanceOf(el, window.MyElement);
|
||||
});
|
||||
|
||||
test('lifecycle', function() {
|
||||
@@ -165,8 +165,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
assert.instanceOf(el, HTMLElement);
|
||||
assert.instanceOf(el, Polymer.Element);
|
||||
assert.instanceOf(el, Polymer.LegacyElement);
|
||||
assert.instanceOf(el, MyElement);
|
||||
assert.instanceOf(el, SubElement);
|
||||
assert.instanceOf(el, window.MyElement);
|
||||
assert.instanceOf(el, window.SubElement);
|
||||
});
|
||||
|
||||
test('lifecycle', function() {
|
||||
|
||||
@@ -1013,7 +1013,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
var div = document.createElement('div');
|
||||
div.innerHTML = '<x-dist><div></div></x-dist>';
|
||||
var h1 = div.firstChild;
|
||||
var h2 = createPatchedDocumentFragment();;
|
||||
var h2 = createPatchedDocumentFragment();
|
||||
document.body.appendChild(h1);
|
||||
CustomElements.takeRecords();
|
||||
ShadyDOM.flush();
|
||||
|
||||
@@ -865,7 +865,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
assert.equal(c1.getAttribute('name'), 's1');
|
||||
assert.equal(c2.getAttribute('name'), 's2');
|
||||
assert.equal(c3.getAttribute('name'), 's3');
|
||||
var ip$ = [c1, c2, c3];
|
||||
// var ip$ = [c1, c2, c3];
|
||||
assert.equal(child.className, 'select-child');
|
||||
assert.equal(allInsertionPoints(child).length, 0);
|
||||
child.setAttribute('slot', 's1');
|
||||
@@ -915,7 +915,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
assert.equal(c1.getAttribute('slot'), 's1');
|
||||
assert.equal(c2.getAttribute('slot'), 's2');
|
||||
assert.equal(c3.getAttribute('slot'), 's3');
|
||||
var ip$ = [c1, c2, c3];
|
||||
// var ip$ = [c1, c2, c3];
|
||||
assert.equal(child.className, 'select-child');
|
||||
assert.equal(child.assignedSlot, null);
|
||||
child.setAttribute('slot', 's1');
|
||||
@@ -1226,7 +1226,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
var test = document.querySelector('x-test');
|
||||
var rere = document.querySelector('x-rereproject');
|
||||
var projected = document.querySelector('#projected');
|
||||
assert.ok(testElement);
|
||||
assert.ok(test);
|
||||
assert.notOk(rere);
|
||||
assert.notOk(projected);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user