MCPcopy Create free account
hub / github.com/microsoft/SandDance / animationFrameCallback

Function animationFrameCallback

docs/app/js/sanddance-app.js:20990–20998  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20988 if (!this._isDisposed) {
20989 if (!this._animationFrameIds) this._animationFrameIds = {};
20990 var animationFrameCallback = function() {
20991 try {
20992 // Now delete the record and call the callback.
20993 if (_this._animationFrameIds) delete _this._animationFrameIds[animationFrameId];
20994 callback.apply(_this._parent);
20995 } catch (e) {
20996 _this._logError(e);
20997 }
20998 };
20999 animationFrameId = win.requestAnimationFrame ? win.requestAnimationFrame(animationFrameCallback) : win.setTimeout(animationFrameCallback, 0);
21000 this._animationFrameIds[animationFrameId] = true;
21001 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected