##// END OF EJS Templates
Added require.js shims for underscore and backbone...
Jonathan Frederic -
Show More
@@ -21,8 +21,8 b''
21 21 // Use require.js 'define' method so that require.js is intelligent enough to
22 22 // syncronously load everything within this file when it is being 'required'
23 23 // elsewhere.
24 define(["components/underscore/underscore-min",
25 "components/backbone/backbone-min",
24 define(["underscore",
25 "backbone",
26 26 ], function (underscore, backbone) {
27 27
28 28 //--------------------------------------------------------------------
@@ -15,8 +15,8 b''
15 15 **/
16 16
17 17 define(["notebook/js/widgetmanager",
18 "components/underscore/underscore-min",
19 "components/backbone/backbone-min"],
18 "underscore",
19 "backbone"],
20 20 function(widget_manager, underscore, backbone){
21 21
22 22 //--------------------------------------------------------------------
@@ -21,7 +21,18 b''
21 21 require.config({
22 22 baseUrl: '{{static_url("")}}',
23 23 paths: {
24 nbextensions : '{{ base_project_url }}nbextensions'
24 nbextensions : '{{ base_project_url }}nbextensions',
25 underscore : '{{static_url()}}components/underscore/underscore-min',
26 backbone : '{{static_url()}}components/backbone/backbone-min',
27 },
28 shim: {
29 underscore: {
30 exports: '_'
31 },
32 backbone: {
33 deps: ["underscore", "jquery"],
34 exports: "Backbone"
35 }
25 36 }
26 37 });
27 38 </script>
General Comments 0
You need to be logged in to leave comments. Login now