Created
December 6, 2014 18:29
-
-
Save thash/00fcb814e2a89ea029e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ($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