Lines Matching refs:listeners
41 var listeners = this._listeners[eventType];
42 for (var i = 0; i < listeners.length; ++i) {
43 if (listener && listeners[i].listener === listener && listeners[i].thisObject === thisObject)
44 listeners.splice(i, 1);
45 else if (!listener && thisObject && listeners[i].thisObject === thisObject)
46 listeners.splice(i, 1);
49 if (!listeners.length)
73 var listeners = this._listeners[eventType].slice(0);
74 for (var i = 0; i < listeners.length; ++i) {
75 listeners[i].listener.call(listeners[i].thisObject, event);