Bläddra i källkod

[notebook] Fix loading order problems with ko Charts

Enrico Berti 10 år sedan
förälder
incheckning
2cd9e99
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 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 }',