diff --git a/src/standard/notify-path.html b/src/standard/notify-path.html index 0174974c44..e5effe80fb 100644 --- a/src/standard/notify-path.html +++ b/src/standard/notify-path.html @@ -70,20 +70,17 @@ * Example: * * this.item.user.name = 'Bob'; - * this.notifyPath('item.user.name', this.item.user.name); + * this.notifyPath('item.user.name'); * * @param {string} path Path that should be notified. - * @param {*} value Value of the specified path. - * @param {boolean=} fromAbove When true, specifies that the change came - * from above this element and thus upward notification is not - * necessary. - * @return {boolean} Returns true if notification actually took place, - * based on a dirty check of whether the new value was already known. */ notifyPath: function(path, value, fromAbove) { // Convert any array indices to keys before notifying path var info = {}; - this._get(path, this, info); + var v = this._get(path, this, info); + if (arguments.length === 1) { + value = v; + } // Notify change to key-based path if (info.path) { this._notifyPath(info.path, value, fromAbove);