Skip to content

Instantly share code, notes, and snippets.

@sergiopvilar
Created September 26, 2012 01:40
Show Gist options
  • Save sergiopvilar/3785503 to your computer and use it in GitHub Desktop.
Save sergiopvilar/3785503 to your computer and use it in GitHub Desktop.
var Namespace = {};
require([
"jquery",
"libs/mousewheel",
"libs/jquery.jscrollpane.min",
"modules/common",
"modules/home",
"modules/selecione"
], function($) {
$(function() {
window.onload = Namespace.common.init();
var pageName = $('#bodyrel').val();
if( (pageName != 'undefined') && (pageName != '') ) {
window.onload = Namespace[pageName].init;
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment