mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
[all] fix editor openin after undescorejs update
This commit is contained in:
@ -56,8 +56,9 @@ if (Common === undefined)
|
||||
var Common = {};
|
||||
|
||||
define([
|
||||
'backbone'
|
||||
], function (Backbone) {
|
||||
'backbone',
|
||||
'underscore',
|
||||
], function (Backbone, _) {
|
||||
'use strict';
|
||||
|
||||
var NotificationCenter = function(){};
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
(function(){
|
||||
define(['underscore'],
|
||||
function(_){
|
||||
var resolveNamespace = function(className, root) {
|
||||
var parts = className.split('.'),
|
||||
current = root || window;
|
||||
@ -562,4 +563,4 @@
|
||||
else {
|
||||
throw ('Native Backbone.Application instance already defined.')
|
||||
}
|
||||
})();
|
||||
});
|
||||
@ -77,7 +77,8 @@ Common.util = Common.util||{};
|
||||
|
||||
define([
|
||||
'backbone',
|
||||
'keymaster'
|
||||
'keymaster',
|
||||
'notification'
|
||||
], function (Backbone) {
|
||||
'use strict';
|
||||
|
||||
|
||||
@ -118,22 +118,20 @@ require.config({
|
||||
}
|
||||
});
|
||||
|
||||
require(['underscore'], function(_) {
|
||||
window._ = _
|
||||
})
|
||||
|
||||
require([
|
||||
'sdk',
|
||||
'backbone',
|
||||
'underscore',
|
||||
'bootstrap',
|
||||
'core',
|
||||
'analytics',
|
||||
'gateway',
|
||||
'locale'
|
||||
], function (Sdk, Backbone, Bootstrap, Core) {
|
||||
], function (Sdk, Backbone, _, Bootstrap, Core) {
|
||||
if (Backbone.History && Backbone.History.started)
|
||||
return;
|
||||
Backbone.history.start();
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* Application instance with DE namespace defined
|
||||
|
||||
@ -108,23 +108,20 @@ require.config({
|
||||
}
|
||||
});
|
||||
|
||||
require(['underscore'], function(_) {
|
||||
window._ = _
|
||||
})
|
||||
|
||||
require([
|
||||
'backbone',
|
||||
'underscore',
|
||||
'bootstrap',
|
||||
'core',
|
||||
'analytics',
|
||||
'gateway',
|
||||
'locale',
|
||||
'socketio',
|
||||
'underscore'
|
||||
], function (Backbone, Bootstrap, Core) {
|
||||
], function (Backbone, _, Bootstrap, Core) {
|
||||
if (Backbone.History && Backbone.History.started)
|
||||
return;
|
||||
Backbone.history.start();
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* Application instance with DE namespace defined
|
||||
|
||||
@ -118,22 +118,20 @@ require.config({
|
||||
}
|
||||
});
|
||||
|
||||
require(['underscore'], function(_) {
|
||||
window._ = _
|
||||
})
|
||||
|
||||
require([
|
||||
'sdk',
|
||||
'backbone',
|
||||
'underscore',
|
||||
'bootstrap',
|
||||
'core',
|
||||
'analytics',
|
||||
'gateway',
|
||||
'locale'
|
||||
], function (Sdk, Backbone, Bootstrap, Core) {
|
||||
], function (Sdk, Backbone, _, Bootstrap, Core) {
|
||||
if (Backbone.History && Backbone.History.started)
|
||||
return;
|
||||
Backbone.history.start();
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* Application instance with PDFE namespace defined
|
||||
|
||||
@ -108,22 +108,20 @@ require.config({
|
||||
}
|
||||
});
|
||||
|
||||
require(['underscore'], function(_) {
|
||||
window._ = _
|
||||
})
|
||||
|
||||
require([
|
||||
'backbone',
|
||||
'underscore',
|
||||
'bootstrap',
|
||||
'core',
|
||||
'analytics',
|
||||
'gateway',
|
||||
'locale',
|
||||
'socketio',
|
||||
], function (Backbone, Bootstrap, Core) {
|
||||
], function (Backbone, _, Bootstrap, Core) {
|
||||
if (Backbone.History && Backbone.History.started)
|
||||
return;
|
||||
Backbone.history.start();
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* Application instance with PDFE namespace defined
|
||||
|
||||
@ -117,22 +117,20 @@ require.config({
|
||||
}
|
||||
});
|
||||
|
||||
require(['underscore'], function(_) {
|
||||
window._ = _
|
||||
})
|
||||
|
||||
require([
|
||||
'sdk',
|
||||
'backbone',
|
||||
'underscore',
|
||||
'bootstrap',
|
||||
'core',
|
||||
'analytics',
|
||||
'gateway',
|
||||
'locale'
|
||||
], function (Sdk, Backbone, Bootstrap, Core) {
|
||||
], function (Sdk, Backbone, _, Bootstrap, Core) {
|
||||
if (Backbone.History && Backbone.History.started)
|
||||
return;
|
||||
Backbone.history.start();
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* Application instance with PE namespace defined
|
||||
|
||||
@ -107,12 +107,9 @@ require.config({
|
||||
}
|
||||
});
|
||||
|
||||
require(['underscore'], function(_) {
|
||||
window._ = _
|
||||
})
|
||||
|
||||
require([
|
||||
'backbone',
|
||||
'underscore',
|
||||
'bootstrap',
|
||||
'core',
|
||||
'analytics',
|
||||
@ -120,10 +117,11 @@ require([
|
||||
'locale',
|
||||
'socketio',
|
||||
'xregexp',
|
||||
], function (Backbone, Bootstrap, Core) {
|
||||
], function (Backbone, _, Bootstrap, Core) {
|
||||
if (Backbone.History && Backbone.History.started)
|
||||
return;
|
||||
Backbone.history.start();
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* Application instance with PE namespace defined
|
||||
|
||||
@ -117,22 +117,20 @@ require.config({
|
||||
}
|
||||
});
|
||||
|
||||
require(['underscore'], function(_) {
|
||||
window._ = _
|
||||
})
|
||||
|
||||
require([
|
||||
'sdk',
|
||||
'backbone',
|
||||
'underscore',
|
||||
'bootstrap',
|
||||
'core',
|
||||
'analytics',
|
||||
'gateway',
|
||||
'locale'
|
||||
], function (Sdk, Backbone, Bootstrap, Core) {
|
||||
], function (Sdk, Backbone, _, Bootstrap, Core) {
|
||||
if (Backbone.History && Backbone.History.started)
|
||||
return;
|
||||
Backbone.history.start();
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* Application instance with SSE namespace defined
|
||||
|
||||
@ -107,22 +107,20 @@ require.config({
|
||||
}
|
||||
});
|
||||
|
||||
require(['underscore'], function(_) {
|
||||
window._ = _
|
||||
})
|
||||
|
||||
require([
|
||||
'backbone',
|
||||
'underscore',
|
||||
'bootstrap',
|
||||
'core',
|
||||
'analytics',
|
||||
'gateway',
|
||||
'locale',
|
||||
'socketio',
|
||||
], function (Backbone, Bootstrap, Core) {
|
||||
], function (Backbone, _, Bootstrap, Core) {
|
||||
if (Backbone.History && Backbone.History.started)
|
||||
return;
|
||||
Backbone.history.start();
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* Application instance with SSE namespace defined
|
||||
|
||||
Reference in New Issue
Block a user