Created
February 13, 2013 21:11
-
-
Save mrvisser/4948318 to your computer and use it in GitHub Desktop.
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
/*! | |
* Load all of the 3rd party libraries that need to be present from the very beginning, as well as the actual | |
* core client-side Sakai OAE APIs | |
*/ | |
define([ | |
'oae.api!', | |
'jquery', | |
/*! | |
* All the OAE API libraries found in /shared/oae/api. By including these here, requirejs will know that the | |
* libraries are already included in the `oae.core` dependency and individual libraries will not be loaded | |
* on the client when requested. | |
*/ | |
'oae.api.authentication', | |
'oae.api.config', | |
'oae.api.content', | |
'oae.api.group', | |
'oae.api.i18n', | |
'oae.api.l10n', | |
'oae.api.profile', | |
'oae.api.user', | |
'oae.api.util', | |
'oae.api.widget', | |
/*! | |
* Third-party dependencies. | |
*/ | |
'globalize', | |
'jqmodal', | |
'jquery.ba-bbq', | |
'jquery.ba-hashchange', | |
'jquery.contentchange', | |
'jquery.equal-height-columns', | |
'jquery.fileSize', | |
'jquery.form', | |
'jquery.gritter', | |
'jquery.infinitescroll', | |
'jquery.properties-parser', | |
'jquery.serializeObject', | |
'jquery.timeago', | |
'jquery-ui', | |
'jquery.validate', | |
'underscore' | |
], | |
function(oae, $) { | |
// Make caching the default behavior for $.getScript | |
$.ajaxSetup({'cache': true}); | |
// Make sure that arrays passed in as arguments are properly encoded | |
$.ajaxSettings.traditional = true; | |
return oae; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment