Skip to content

Instantly share code, notes, and snippets.

@mklabs
Created November 1, 2010 17:14
Show Gist options
  • Select an option

  • Save mklabs/658518 to your computer and use it in GitHub Desktop.

Select an option

Save mklabs/658518 to your computer and use it in GitHub Desktop.
for (var obj in myObjects) {
if (myObjects.hasOwnProperty(obj)) {
myObjects[obj].destroy();
delete myObjects[obj];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment