bound the right context to the aftersubscriber of _afterIdChange #1499

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
@@ -190,7 +190,7 @@ Y.ModelList = Y.extend(ModelList, Y.Base, {
this.publish(EVT_RESET, {defaultFn: this._defResetFn});
this.publish(EVT_REMOVE, {defaultFn: this._defRemoveFn});
- this.after('*:idChange', this._afterIdChange);
+ this.after('*:idChange', Y.bind(this._afterIdChange, this));
this._clear();