Commit 7a231fbc authored by Boris Kocherov's avatar Boris Kocherov

improve async loader now it use build config

parent 476aeff1
......@@ -346,29 +346,7 @@ DocsAPI.DocEditor.version = function () {
'Common.Controllers.Plugins'
];
define("sdk_files", [], function () {
return [
"../common/browser.js",
"../common/commonDefines.js",
"../common/docscoapicommon.js",
"../common/docscoapi.js",
"../common/apiCommon.js",
"../common/SerializeCommonWordExcel.js",
"../common/editorscommon.js",
"../common/HistoryCommon.js",
"../common/TableId.js",
"../common/TableIdChanges.js",
"../common/AdvancedOptions.js",
"../cell/apiDefines.js",
"../cell/utils/utils.js",
"../cell/view/HandlerList.js",
"../cell/model/CollaborativeEditing.js",
"../common/apiBase.js",
"../common/Private/license.js",
"../word/apiCommon.js",
"../cell/api.js",
"../common/Local/license.js",
"../common/Local/jio.js"
];
return "webexcel.json";
});
styles = [
'css!../sdkjs/cell/css/main.css',
......@@ -396,31 +374,7 @@ DocsAPI.DocEditor.version = function () {
'Common.Controllers.ReviewChanges'
];
define("sdk_files", [], function () {
return [
"../common/browser.js",
"../common/commonDefines.js",
"../common/docscoapicommon.js",
"../common/docscoapi.js",
"../common/spellcheckapi.js",
"../common/spellCheckLanguage.js",
"../common/spellCheckLanguagesAll.js",
"../common/apiCommon.js",
"../common/SerializeCommonWordExcel.js",
"../common/editorscommon.js",
"../common/HistoryCommon.js",
"../common/TableId.js",
"../common/TableIdChanges.js",
"../common/AdvancedOptions.js",
"../word/apiDefines.js",
"../common/CollaborativeEditingBase.js",
"../word/Editor/CollaborativeEditing.js",
"../common/apiBase.js",
"../common/Private/license.js",
"../word/apiCommon.js",
"../word/api.js",
"../common/Local/license.js",
"../common/Local/jio.js"
];
return "webword.json";
});
styles = [
'css!documenteditor/main/resources/css/app.css'
......@@ -444,29 +398,7 @@ DocsAPI.DocEditor.version = function () {
'Common.Controllers.ExternalDiagramEditor'
];
define("sdk_files", [], function () {
return [
"../common/browser.js",
"../common/commonDefines.js",
"../common/docscoapicommon.js",
"../common/docscoapi.js",
"../common/apiCommon.js",
"../common/SerializeCommonWordExcel.js",
"../common/editorscommon.js",
"../common/HistoryCommon.js",
"../common/TableId.js",
"../common/TableIdChanges.js",
"../common/AdvancedOptions.js",
"../slide/apiDefines.js",
"../common/CollaborativeEditingBase.js",
"../slide/Editor/CollaborativeEditing.js",
"../common/apiBase.js",
"../common/Private/license.js",
"../word/apiCommon.js",
"../slide/api.js",
"../common/Local/license.js",
"../common/Local/empty_slide.js",
"../common/Local/jio.js"
];
return "webpowerpoint.json";
});
styles = [
'css!presentationeditor/main/resources/css/app.css'
......
......@@ -12,7 +12,16 @@ define([
'sockjs',
'jsziputils',
'jsrsasign'
], function (urls) {
], function(config_file) {
return new RSVP.Queue()
.push(function () {
return jIO.util.ajax({
type: "GET",
dataType: "json",
url: "sdkjs/build/configs/" + config_file
});
})
.push(function (response) {
var script_src = "",
queue = new RSVP.Queue();
......@@ -27,7 +36,7 @@ define([
});
}
urls.forEach(function (url) {
response.target.response.compile.sdk.min.forEach(function (url) {
url = url.replace('../', './sdkjs/');
queue
.push(function () {
......@@ -48,4 +57,5 @@ define([
throw error;
});
return queue;
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment