comparison static/js/wikked.js @ 63:97efd73f2158

Changed RequireJS paths to make it usable with the optimizer.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 06 Feb 2013 23:48:34 -0800
parents 130eccd396d8
children d5caf4030999
comparison
equal deleted inserted replaced
62:a73a3c0b6d4a 63:97efd73f2158
4 * We need to alias/shim some of the libraries. 4 * We need to alias/shim some of the libraries.
5 */ 5 */
6 require.config({ 6 require.config({
7 urlArgs: "bust=" + (new Date()).getTime(), 7 urlArgs: "bust=" + (new Date()).getTime(),
8 paths: { 8 paths: {
9 jquery: 'jquery-1.8.3.min', 9 jquery: 'js/jquery-1.8.3.min',
10 underscore: 'underscore-min', 10 underscore: 'js/underscore-min',
11 backbone: 'backbone-min', 11 backbone: 'js/backbone-min',
12 handlebars: 'handlebars-1.0.rc.1', 12 handlebars: 'js/handlebars-1.0.rc.1',
13 bootstrap_modal: '/bootstrap/js/bootstrap-modal' 13 bootstrap_modal: '/bootstrap/js/bootstrap-modal',
14 text: 'js/text'
14 }, 15 },
15 shim: { 16 shim: {
16 'jquery': { 17 'jquery': {
17 exports: '$' 18 exports: '$'
18 }, 19 },
39 * 40 *
40 * We also import scripts like `handlebars` that are not used directly 41 * We also import scripts like `handlebars` that are not used directly
41 * by anybody, but need to be evaluated. 42 * by anybody, but need to be evaluated.
42 */ 43 */
43 require([ 44 require([
44 'wikked/app', 45 'js/wikked/app',
45 'wikked/handlebars', 46 'js/wikked/handlebars',
46 'backbone', 47 'backbone',
47 'text' 48 'text'
48 ], 49 ],
49 function(app, hb, Backbone, textExtension) { 50 function(app, hb, Backbone, textExtension) {
50 51