[Dojo-interest] animations and destroyNode

Jonathan Bowers jbowers at sd73.bc.ca
Wed Feb 7 12:01:43 MST 2007


I'm trying to animate out a node, then destroy it, but it seems like the 
destroyNode call happens at the same time as animations, so the node 
just blinks out of existence rather than animating out nicely.

I've tried the following:

dojo.lfx.combine(
    dojo.lfx.html.fadeOut(element, 300),
    dojo.lfx.html.wipeOut(element, 500)
).play();
dojo.dom.destroyNode(element);

AND i've tried

dojo.lfx.combine(
    dojo.lfx.html.fadeOut(element, 300),
    dojo.lfx.html.wipeOut(element, 500, 0, dojo.dom.destroyNode(element)
).play();

Thanks



More information about the Dojo-interest mailing list