Advertisement
Guest User

Untitled

a guest
Apr 10th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. require.config({
  3.     paths:{
  4.         jquery:'libs/jquery/jquery-1.7.2.min',
  5.         underscore:'libs/underscore/underscore-min',
  6.         backbone:'libs/backbone/backbone-min',
  7.         text:'libs/require/text',
  8.         order:'libs/require/order',
  9.         xdomainajax:'libs/jquery/jquery.xdomainajax'
  10.         //templates: '../templates'
  11.     }
  12.  
  13. });
  14.  
  15. //Loading up the required library dependencies and the app.
  16. require([
  17.     // Loading the libs
  18.     'order',
  19.     'text',
  20.     'order!jquery',
  21.     'order!xdomainajax',
  22.     'order!underscore',
  23.     'order!backbone'
  24. ]);
  25.  
  26. define([
  27. // Load our app module and pass it to our definition function
  28.     'app'
  29. ], function (App)
  30.     {
  31.         // The "app" dependency is passed in as "App"
  32.         // Again, the other dependencies passed in are not "AMD" therefore don't pass a parameter to this function
  33.         App.initialize();
  34.     }
  35. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement