diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-08-06 14:50:22 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-08-06 14:50:22 +0200 |
| commit | baef37aec64b21fbdb036345a740c35a5355bc8c (patch) | |
| tree | 63bc9bea3a24b517aac123ed2c55bec4ddbe004c /addons/web/static/src/js/core.js | |
| parent | c63a86c59381c09bf9a33d8719a893d5ff467c95 (diff) | |
[IMP] Removed old JavaScript module loading system in the 'web' addons. Still has some retro-compatibility for other addons.
bzr revid: nicolas.vanhoren@openerp.com-20130806125022-bzjbtn0nqk40ak4g
Diffstat (limited to 'addons/web/static/src/js/core.js')
| -rw-r--r-- | addons/web/static/src/js/core.js | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/addons/web/static/src/js/core.js b/addons/web/static/src/js/core.js index 24a3bfdbc88..6a4d85f7204 100644 --- a/addons/web/static/src/js/core.js +++ b/addons/web/static/src/js/core.js @@ -1,17 +1,18 @@ (function() { - if (typeof(console) === "undefined") { - // Even IE9 only exposes console object if debug window opened - window.console = {}; - ('log error debug info warn assert clear dir dirxml trace group' - + ' groupCollapsed groupEnd time timeEnd profile profileEnd count' - + ' exception').split(/\s+/).forEach(function(property) { - console[property] = _.identity; - }); - } -})(); -openerp.web.core = function(instance) { +if (typeof(console) === "undefined") { + // Even IE9 only exposes console object if debug window opened + window.console = {}; + ('log error debug info warn assert clear dir dirxml trace group' + + ' groupCollapsed groupEnd time timeEnd profile profileEnd count' + + ' exception').split(/\s+/).forEach(function(property) { + console[property] = _.identity; + }); +} + +var instance = openerp; +openerp.web.core = {}; var ControllerMixin = { /** @@ -796,6 +797,6 @@ instance.web.unblockUI = function() { */ instance.web.client_actions = new instance.web.Registry(); -}; +})(); // vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax: |
