Lines Matching refs:callback
172 function ObserverCreate(callback, acceptList) { argument
174 return callback;
176 observer.callback = callback;
182 return IS_SPEC_FUNCTION(observer) ? observer : observer.callback;
235 typeof changeObservers.callback === 'function';
245 var callback = ObserverGetCallback(observer);
246 var callbackInfo = CallbackInfoGet(callback);
253 function ObjectInfoAddObserver(objectInfo, callback, acceptList) { argument
254 var callbackInfo = CallbackInfoGetOrCreate(callback);
255 var observer = ObserverCreate(callback, acceptList);
267 function ObjectInfoRemoveObserver(objectInfo, callback) { argument
272 if (callback === ObserverGetCallback(objectInfo.changeObservers))
277 var callbackInfo = CallbackInfoGet(callback);
330 function CallbackInfoGet(callback) { argument
331 return GetCallbackInfoMap().get(callback);
334 function CallbackInfoGetOrCreate(callback) { argument
335 var callbackInfo = GetCallbackInfoMap().get(callback);
340 GetCallbackInfoMap().set(callback, priority);
351 function CallbackInfoNormalize(callback) { argument
352 var callbackInfo = GetCallbackInfoMap().get(callback);
357 GetCallbackInfoMap().set(callback, callbackInfo);
362 function ObjectObserve(object, callback, acceptList) { argument
367 if (!IS_SPEC_FUNCTION(callback))
369 if (ObjectIsFrozen(callback))
373 return objectObserveFn(object, callback, acceptList);
376 function NativeObjectObserve(object, callback, acceptList) { argument
379 ObjectInfoAddObserver(objectInfo, callback, typeList);
383 function ObjectUnobserve(object, callback) { argument
388 if (!IS_SPEC_FUNCTION(callback))
395 ObjectInfoRemoveObserver(objectInfo, callback);
399 function ArrayObserve(object, callback) { argument
400 return ObjectObserve(object, callback, ['add',
406 function ArrayUnobserve(object, callback) { argument
407 return ObjectUnobserve(object, callback);
416 var callback = ObserverGetCallback(observer);
417 if (!%ObserverObjectAndRecordHaveSameOrigin(callback, changeRecord.object,
422 var callbackInfo = CallbackInfoNormalize(callback);
438 GetPendingObservers()[callbackInfo.priority] = callback;
596 function CallbackDeliverPending(callback) { argument
597 var callbackInfo = GetCallbackInfoMap().get(callback);
604 GetCallbackInfoMap().set(callback, priority);
613 %_CallFunction(UNDEFINED, delivered, callback);
618 function ObjectDeliverChangeRecords(callback) { argument
619 if (!IS_SPEC_FUNCTION(callback))
622 while (CallbackDeliverPending(callback)) {}