Skip to content

Instantly share code, notes, and snippets.

@gopperman
Created September 3, 2013 19:30
Show Gist options
  • Save gopperman/6428458 to your computer and use it in GitHub Desktop.
Save gopperman/6428458 to your computer and use it in GitHub Desktop.
Javascript function suicide - have a function kill itself so that it only runs once
var init = function () {
// do the initializing
init = function() {
return false;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment