MCPcopy
hub / github.com/Famous/famous-angular / doneCallback

Function doneCallback

src/scripts/services/famousAnimate.js:253–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251 element.data(FA_ANIMATION_ACTIVE, true);
252
253 var doneCallback = function() {
254
255 var scopeId = elemScope && elemScope.$id;
256
257 //hide the element on animate.leave
258 if(operation === 'leave' && $famous.util.isFaElement(element)){
259 var isolate = _getIsolate(elemScope);
260 if(isolate && isolate.id) isolate.hide();
261 }
262
263 // Abort if the done callback has already been invoked
264 if (element.data(FA_ANIMATION_ACTIVE) === false) {
265 return;
266 }
267
268 // Indicate an animation is no longer running
269 element.data(FA_ANIMATION_ACTIVE, false);
270 if (delegateFirst === false) {
271 $delegate[operation].apply(self, selfArgs);
272 }
273 };
274
275 $rootScope.$$postDigest(function() {
276

Callers 1

famousAnimate.jsFile · 0.85

Calls 1

_getIsolateFunction · 0.85

Tested by

no test coverage detected