You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@trusktr just leaving this here for the next victim of this problem...
varDismount=function(node){varaNodes=[];if(!(nodeinstanceoffamous.core.Node))throw"node not a Famous#Node";varf=function(current){aNodes.push(current);varaChildren=current.getChildren();for(variinaChildren)f(aChildren[i]);};f(node);while(aNodes.length){varx=aNodes.pop();if(x.isMounted())x.dismount();}}
Can you give a short example of the proper way to make sure nodes are cleaned up when removed from a scene graph?
The text was updated successfully, but these errors were encountered: