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