Skip to content

Instantly share code, notes, and snippets.

@arturoleon
Created November 25, 2012 21:06
Show Gist options
  • Save arturoleon/4145331 to your computer and use it in GitHub Desktop.
Save arturoleon/4145331 to your computer and use it in GitHub Desktop.
Titanium Mobile: Remove all childrens recursively from an object
function removeChildrens(objeto) {
for (i in objeto.children) {
var child=objeto.children[0];
removeChildrens(child);
objeto.remove(child);
child=null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment