summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/boot.js
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2012-04-09 02:39:01 +0200
committerAntony Lesuisse <al@openerp.com>2012-04-09 02:39:01 +0200
commit7b158acee539b1900e6e99f53df4715b5b481625 (patch)
tree362799dfd95e6ae641d32e695040eb339c52e006 /addons/web/static/src/js/boot.js
parent8ea5590e2cd741b41ec64205f713ba2e62c8ef5d (diff)
core refactoring, split core into corelib.js and coresetup.js
bzr revid: al@openerp.com-20120409003901-uo5wn6lj27yb6w7x
Diffstat (limited to 'addons/web/static/src/js/boot.js')
-rw-r--r--addons/web/static/src/js/boot.js21
1 files changed, 5 insertions, 16 deletions
diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js
index 282435f2a71..41aee0cf630 100644
--- a/addons/web/static/src/js/boot.js
+++ b/addons/web/static/src/js/boot.js
@@ -47,26 +47,15 @@
/*---------------------------------------------------------
* OpenERP Web web module split
*---------------------------------------------------------*/
-
-/**
- * @namespace
- */
-openerp.web = function(instance) {
- openerp.web.core(instance);
- if (openerp.web.dates) {
- openerp.web.dates(instance);
- }
- openerp.web.formats(instance);
- openerp.web.chrome(instance);
- openerp.web.data(instance);
- var files = ["views","search","list","form", "page","list_editable","web_mobile","view_tree","data_export","data_import","view_editor"];
+openerp.web = function(session) {
+ var files = ["corelib","coresetup","dates","formats","chrome","data","views","search","list","form","page","list_editable","web_mobile","view_tree","data_export","data_import","view_editor"];
for(var i=0; i<files.length; i++) {
if(openerp.web[files[i]]) {
- openerp.web[files[i]](instance);
+ openerp.web[files[i]](session);
}
}
- instance.log = function() {
- if (instance.connection.debug && window.console) {
+ session.log = function() {
+ if (session.connection.debug && window.console) {
console.log.apply(console, arguments);
}
}