Skip to content

Commit

Permalink
Lint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Dec 19, 2019
1 parent 8ef2cc7 commit 7b0c57a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/legacy/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function GenerateClassFromInfo(info, Base, behaviors) {
const a = this.attributes;
for (let i=0, l=a.length; i < l; i++) {
const attr = a[i];
this.__attributeReaction(attr.name, undefined, attr.value)
this.__attributeReaction(attr.name, undefined, attr.value);
}
}
super.created();
Expand Down
8 changes: 4 additions & 4 deletions lib/utils/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,17 +316,17 @@ export const setSuppressTemplateNotifications = function(suppress) {
/**
* Setting to disable use of dynamic attributes. This is an optimization
* to avoid setting `observedAttributes`. Instead attributes are read
* once at create time.
* once at create time and set/removeAttribute are patched.
*/
export let legacyNoObservedAttributes =
window.Polymer && window.Polymer.legacyNoObservedAttributes || false;

/**
* Sets `legacyNoObservedAttributes` globally, to disable `observedAttributes`.
*
* @param {boolean} disables `observedAttributes`
* @param {boolean} noObservedAttributes enable or disable `legacyNoObservedAttributes`
* @return {void}
*/
export const setLegacyNoObservedAttributes = function(noAttributes) {
legacyNoObservedAttributes = noAttributes;
export const setLegacyNoObservedAttributes = function(noObservedAttributes) {
legacyNoObservedAttributes = noObservedAttributes;
};
2 changes: 0 additions & 2 deletions test/unit/legacy-noattributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@
import {flush} from '../../lib/utils/flush.js';
import {wrap} from '../../lib/utils/wrap.js';

let el = window.configured;

suite('legacyNoObservedAttributes', () => {

let el;
Expand Down

0 comments on commit 7b0c57a

Please sign in to comment.