Browse Source

[notebook] Fix loading order problems with ko Charts

Enrico Berti 10 years ago
parent
commit
2cd9e99

+ 2 - 2
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -1432,14 +1432,14 @@ ${ require.config() }
 
   require([
     "knockout",
-    "notebook/js/notebook.ko",
     "ko.charts",
+    "notebook/js/notebook.ko",
     "knockout-mapping",
     "knockout-sortable",
     "knockout-deferred-updates",
     "ko.editable",
     "ko.hue-bindings"
-  ], function (ko, EditorViewModel) {
+  ], function (ko, charts, EditorViewModel) {
 
       var VIEW_MODEL_OPTIONS = $.extend(${ options_json | n,unicode }, {
       user: '${ user.username }',