Permalink
Browse files

Corrected "basePath" to "baseUrl"

  • Loading branch information...
david0178418 committed Jan 18, 2012
1 parent e8c9186 commit b4afda3842b119b5568634dbda309161852f68d5
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/js/main.js
View
@@ -1,14 +1,15 @@
(function() {
"use strict";
+ var libsPath = '../../libs/js/'; //libsPath relative to 'basePath'
require.config({
paths : {
- jquery : '../../libs/js/jquery-1.7.1.min', //return jQuery module but also keeps it in the global scope
- jqueryLoader : '../../libs/js/jquery', //loads jQuery module and removes it from the global scope
- underscore : '../../libs/js/underscore-min',
- backbone : '../../libs/js/backbone-min' //
+ jquery : libsPath + 'jquery-1.7.1.min', //return jQuery module but also keeps it in the global scope
+ jqueryLoader : libsPath + 'jquery', //loads jQuery module and removes it from the global scope
+ underscore : libsPath + 'underscore-min',
+ backbone : libsPath + 'backbone-min'
},
- basePath : 'src/js'
+ baseUrl : 'src/js'
});
require([
@@ -18,4 +19,4 @@
App.initialize();
}
);
-})();
+})();

0 comments on commit b4afda3

Please sign in to comment.