diff --git a/src/behavior-property-observer.js b/src/behavior-property-observer.js index bbf13649..9fe27fb8 100644 --- a/src/behavior-property-observer.js +++ b/src/behavior-property-observer.js @@ -38,7 +38,7 @@ export class BehaviorPropertyObserver { setValue(newValue: any): void { let oldValue = this.currentValue; - if (oldValue !== newValue) { + if (!Object.is(newValue, oldValue)) { this.oldValue = oldValue; this.currentValue = newValue; @@ -62,7 +62,7 @@ export class BehaviorPropertyObserver { this.notqueued = true; - if (newValue === oldValue) { + if (Object.is(newValue, oldValue)) { return; }