Skip to content

Instantly share code, notes, and snippets.

@skoon
Created October 2, 2012 07:04
Show Gist options
  • Save skoon/3816955 to your computer and use it in GitHub Desktop.
Save skoon/3816955 to your computer and use it in GitHub Desktop.
JS produced by TypeScript
var bootstrap;
(function (bootstrap) {
var itemsLoaded = [];//maintain a list of items we have already loaded to prevent duplicates
var bootstrap = (function () {
function bootstrap(scriptSource, scriptId, callback) {
head = document.head || document.getElementsByTagName("head")[0];
scriptId = scriptId || "script" + Math.floor(Math.random() * 1234);
this.scriptSource = scriptSource;
callback = callback || null;
}
return bootstrap;
})();
})(bootstrap || (bootstrap = {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment