Skip to content

Instantly share code, notes, and snippets.

@stammy
Created April 25, 2012 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stammy/2488430 to your computer and use it in GitHub Desktop.
Save stammy/2488430 to your computer and use it in GitHub Desktop.
require.config({
paths: {
jquery: 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min',
jqueryui: 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min',
json2: 'libs/json2',
underscore: "libs/underscore_132",
backbone: "libs/backbone_92",
order: 'order',
// uploader
fileupload: 'libs/jquery.fileupload',
fileupload_ui: 'libs/jquery.fileupload-ui',
fileupload_iframe: 'libs/jquery.iframe-transport',
// misc libraries, req on jquery
lazyload: 'libs/lazyload',
validations: 'libs/rails.validations',
easing: 'libs/easing',
ujs: 'jquery_ujs',
tipsy: 'libs/jquery.tipsy',
infield: 'libs/jquery.infieldlabel',
waypoints: 'libs/jquery.waypoints.min',
chosen: 'libs/jquery.chosen',
cssua: 'libs/cssua.min',
hoverintent: 'libs/jquery.hoverIntent.min',
handlebars: 'libs/handlebars.runtime',
modernizr: 'libs/modernizr.custom',
strftime: 'libs/strftime',
facebox: 'libs/facebox',
commonjs: 'common'
},
priority: ['jquery']
});
require([
'order!jquery',
'order!backbone',
'app/strobeo',
'app/router',
'app/helpers',
'app/views/extras/onboarding.view',
'order!jqueryui',
'order!fileupload',
'order!fileupload_ui',
'order!fileupload_iframe',
'order!waypoints',
'modernizr',
'order!handlebars',
'hoverintent',
'infield',
'tipsy',
'facebox',
'ujs',
'chosen',
'easing',
'validations',
'order!lazyload',
'order!common'
], function($, Backbone, Strobeo, Router, ViewHelpers, OnboardingView) {
Strobeo.init();
$(document).ready(function() {
ViewHelpers.init();
Strobeo.router = new Router();
Backbone.history.start();
});
if (Strobeo.onboard_guide) {
Strobeo.onboarding_view = new OnboardingView({ app_state: Strobeo.app_state });
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment