Created
January 10, 2014 23:15
-
-
Save soapdog/8364556 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 fireReadyCallbacks(url) { | |
// Fire all ready callbacks we have queued up. | |
console.log("Available callbacks", _readyCallbacks) | |
while(_readyCallbacks.length > 0) { | |
var callback = _readyCallbacks.pop() | |
if (typeof callback === "function") { | |
console.log("Callback available, firing it", callback); | |
callback(); | |
} else { | |
console.log("What?!?!", callback); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment