Fix closure issues

This commit is contained in:
Kevin Schaaf
2019-03-07 18:12:26 -08:00
parent 810a70f171
commit 42dd361f94
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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);
}
}