Created
July 19, 2012 19:32
-
-
Save kennyp/3146229 to your computer and use it in GitHub Desktop.
Main JS file for our setup?
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
/*jslint browser: true, regexp: true */ | |
/*global define: false */ | |
define(['require'], function (require) { | |
'use strict'; | |
return { | |
init: function () { | |
} | |
}; | |
}); |
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
/*jslint browser: true, regexp: true */ | |
/*global requirejs: false */ | |
requirejs.config({ | |
baseUrl: '/themes/comporium/js' | |
}); | |
(function () { | |
'use strict'; | |
var moduleName = document.location.href.replace(/^https?:\/\/[^\/]*\//, ''); | |
requirejs([moduleName], function (module) { | |
module.init(); | |
}); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment