diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-08-31 14:39:52 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2017-08-31 16:26:11 +0200 |
| commit | 95c2bd33a2e4bc5995b77c64c961e97db809e7f2 (patch) | |
| tree | 27c6d4104ae973ad293f0b8e5742f231f8362ff1 /addons/web/static/lib/ace/ace.odoo-custom.js | |
| parent | 6f60a9a1792f4390c883bc1dff5f595c84183e12 (diff) | |
[IMP] web: lazy load nvd3, ace and fullCalendar lib to reduce asset size
Diffstat (limited to 'addons/web/static/lib/ace/ace.odoo-custom.js')
| -rw-r--r-- | addons/web/static/lib/ace/ace.odoo-custom.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/addons/web/static/lib/ace/ace.odoo-custom.js b/addons/web/static/lib/ace/ace.odoo-custom.js index 628464abe25..d8f84294316 100644 --- a/addons/web/static/lib/ace/ace.odoo-custom.js +++ b/addons/web/static/lib/ace/ace.odoo-custom.js @@ -6,10 +6,8 @@ if (!i.require || !i.require.packaged) r.original = i.require, i.require = r, i.require.packaged = !0 } var ACE_NAMESPACE = "", - e = function() { - return this - }(); - !e && typeof window != "undefined" && (e = window); + e = {}; + window.ace = e; if (!ACE_NAMESPACE && typeof requirejs != "undefined") return; var t = function(e, n, r) { if (typeof e != "string") { @@ -76,7 +74,9 @@ return s }; o(ACE_NAMESPACE) -})(), define("ace/lib/regexp", ["require", "exports", "module"], function(e, t, n) { +})(); +(function() {var define = ace.define, require = ace.require; +define("ace/lib/regexp", ["require", "exports", "module"], function(e, t, n) { "use strict"; function o(e) { @@ -9826,7 +9826,7 @@ }, t.EditSession = o, t.UndoManager = u }); (function() { - window.require(["ace/ace"], function(a) { + require(["ace/ace"], function(a) { a && a.config.init(true); if (!window.ace) window.ace = a; @@ -9835,3 +9835,4 @@ window.ace[key] = a[key]; }); })(); +})(); |
