Skip to content

Commit

Permalink
Fix closure issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Mar 8, 2019
1 parent 810a70f commit 42dd361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions externs/polymer-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ Polymer.legacyWarnings;
/** @type {boolean} */
Polymer.legacyNotifyOrder;

/** @type {boolean} */
Polymer.orderedComputed;

// nb. This is explicitly 'var', as Closure Compiler checks that this is the case.
/**
* @constructor
Expand Down
5 changes: 3 additions & 2 deletions lib/mixins/property-effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,10 @@ function propertyIsDirty(inst, trigger, changedProps, hasPaths) {
}
}
});
return false;
} else {
return changedProps && trigger.rootProperty in changedProps ||
inst.__dataPending && trigger.rootProperty in inst.__dataPending;
return Boolean(changedProps && trigger.rootProperty in changedProps ||
inst.__dataPending && trigger.rootProperty in inst.__dataPending);
}
}

Expand Down

0 comments on commit 42dd361

Please sign in to comment.