Created
April 25, 2016 17:23
-
-
Save Godoy/830e372b7aa73158d68633bd15acb781 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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