Skip to content

Instantly share code, notes, and snippets.

@gustavopaes
Created August 4, 2011 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavopaes/1125155 to your computer and use it in GitHub Desktop.
Save gustavopaes/1125155 to your computer and use it in GitHub Desktop.
Adicionar códigos novos em uma função já declarada
oldFunction = (function(temp) {
return function() {
if(typeof temp != 'undefined')
temp();
// your new code here
...
}
})(oldFunction);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment