Lines Matching refs:obj
167 var internalOn = function(obj, name, callback, context, listening) { argument
168 obj._events = eventsApi(onApi, obj._events || {}, name, callback, {
170 ctx: obj,
175 var listeners = obj._listeners || (obj._listeners = {});
179 return obj;
185 Events.listenTo = function(obj, name, callback) { argument
186 if (!obj) return this;
187 var id = obj._listenId || (obj._listenId = _.uniqueId('l'));
195 …listening = listeningTo[id] = {obj: obj, objId: id, id: thisId, listeningTo: listeningTo, count: 0…
199 internalOn(obj, name, callback, this, listening);
230 Events.stopListening = function(obj, name, callback) { argument
234 var ids = obj ? [obj._listenId] : _.keys(listeningTo);
243 listening.obj.off(name, callback, this);
316 Events.listenToOnce = function(obj, name, callback) { argument
318 var events = eventsApi(onceMap, {}, name, callback, _.bind(this.stopListening, this, obj));
319 return this.listenTo(obj, events);
998 get: function(obj) { argument
999 if (obj == null) return void 0;
1000 return this._byId[obj] ||
1001 this._byId[this.modelId(obj.attributes || obj)] ||
1002 obj.cid && this._byId[obj.cid];
1006 has: function(obj) { argument
1007 return this.get(obj) != null;