Skip to content

Instantly share code, notes, and snippets.

@thash
Created December 6, 2014 18:29
Show Gist options
  • Select an option

  • Save thash/00fcb814e2a89ea029e3 to your computer and use it in GitHub Desktop.

Select an option

Save thash/00fcb814e2a89ea029e3 to your computer and use it in GitHub Desktop.
(function ($hx_exports) { "use strict";
var console = (1,eval)('this').console || {log:function(){}};
var Hoge = $hx_exports.Hoge = function() { };
Hoge.main = function() {
};
Hoge.init = function() {
new js.JQuery("button.toggle").click(function() {
new js.JQuery("button.toggle").toggle();
});
};
var interval = setInterval(function() {
console.log("checking if jQuery is loaded...");
if (typeof window.jQuery != "undefined") {
console.log("yey!");
js.JQuery = window.jQuery;
clearInterval(interval);
}
}, 100);
var js = {};
var js = js || {}
Hoge.main();
})(typeof window != "undefined" ? window : exports);
//# sourceMappingURL=Hoge.hx.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment