浏览代码

[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([
     "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 }',