Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save roccogalluzzo/280452 to your computer and use it in GitHub Desktop.
Save roccogalluzzo/280452 to your computer and use it in GitHub Desktop.
function empty(obj){
while (obj.getLastChild()) {
obj.removeChild(obj.getLastChild());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment