Skip to content

Instantly share code, notes, and snippets.

@kennyp
Created July 19, 2012 19:32
Show Gist options
  • Save kennyp/3146229 to your computer and use it in GitHub Desktop.
Save kennyp/3146229 to your computer and use it in GitHub Desktop.
Main JS file for our setup?
/*jslint browser: true, regexp: true */
/*global define: false */
define(['require'], function (require) {
'use strict';
return {
init: function () {
}
};
});
/*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