Cleanup - removing old rng2 code
[fnpeditor.git] / entrypoint.js
1 (function() {
2
3     requirejs.config({\r
4         baseUrl: '/static/editor',
5         
6         shim: {
7             'libs/jquery-1.9.1.min': {
8                 exports: '$',
9             },
10             'libs/underscore-min': {
11                 exports: '_'
12             },
13             'libs/bootstrap/js/bootstrap.min': {
14                 deps: ['libs/jquery-1.9.1.min']
15             },
16             'libs/backbone-min': {
17                 exports: 'Backbone',
18                 deps: ['libs/jquery-1.9.1.min', 'libs/underscore-min']
19             }
20         }
21 \r
22     });
23     
24     requirejs([
25         'libs/jquery-1.9.1.min',
26         'fnpjs/runner',
27         'rng',
28         './modules',
29         'libs/bootstrap/js/bootstrap.min'
30     ], function($, runner, rng, modules) {
31         $(function() {
32             var app = new runner.Runner(rng, modules);
33             app.setBootstrappedData('data', RNG_BOOTSTRAP_DATA);
34             app.start({rootSelector:'#editor_root'});
35         });
36     });
37
38
39 })();