فهرست منبع

[notebook] Fix loading order problems with ko Charts

Enrico Berti 10 سال پیش
والد
کامیت
2cd9e99
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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([
   require([
     "knockout",
     "knockout",
-    "notebook/js/notebook.ko",
     "ko.charts",
     "ko.charts",
+    "notebook/js/notebook.ko",
     "knockout-mapping",
     "knockout-mapping",
     "knockout-sortable",
     "knockout-sortable",
     "knockout-deferred-updates",
     "knockout-deferred-updates",
     "ko.editable",
     "ko.editable",
     "ko.hue-bindings"
     "ko.hue-bindings"
-  ], function (ko, EditorViewModel) {
+  ], function (ko, charts, EditorViewModel) {
 
 
       var VIEW_MODEL_OPTIONS = $.extend(${ options_json | n,unicode }, {
       var VIEW_MODEL_OPTIONS = $.extend(${ options_json | n,unicode }, {
       user: '${ user.username }',
       user: '${ user.username }',