Skip to content

Instantly share code, notes, and snippets.

@Godoy
Created April 25, 2016 17:23
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 Godoy/830e372b7aa73158d68633bd15acb781 to your computer and use it in GitHub Desktop.
Save Godoy/830e372b7aa73158d68633bd15acb781 to your computer and use it in GitHub Desktop.
(function () {
// Pop the call queue...
q = window['my_function'].q;
while(a = q.pop()){
my_real_function(a);
}
//copy the complete function under old that was stacking queue
my_function = my_real_function;
})();
// real function that will execute things
function my_real_function(params) {
console.log("execute real function on remote file");
console.log(params);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment