Adaptation of previous changes to the change from 61241e7 (null instead of undefined as the initial value)

This commit is contained in:
Michał Zielański
2020-06-24 09:54:56 +02:00
parent 61241e7f90
commit 235babfd7f
4 changed files with 12 additions and 7 deletions

View File

@@ -95,7 +95,7 @@ class BaseObject extends Observable {
/**
* @private
* @type {!Object<string, *>}
* @type {?Object<string, *>}
*/
this.values_ = null;
@@ -199,7 +199,7 @@ class BaseObject extends Observable {
const oldValue = this.values_[key];
delete this.values_[key];
if (isEmpty(this.values_)) {
delete this.values_;
this.values_ = null;
}
if (!opt_silent) {
this.notify(key, oldValue);