Lines Matching refs:listeners
250 var listeners = this._listeners[name];
251 if (!listeners) {
252 listeners = [];
253 this._listeners[name] = listeners;
255 listeners.push(callback);
260 var listeners = this._listeners[name];
261 if (!listeners)
264 var index = listeners.indexOf(callback);
266 listeners.splice(index, 1);
271 var listeners = this._listeners[name];
272 if (!listeners)
275 for (var i = 0; i < listeners.length; ++i) {
276 var listener = listeners[i];