summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/coresetup.js
diff options
context:
space:
mode:
authorJigar Amin - OpenERP <jam@tinyerp.com>2012-07-16 11:54:16 +0530
committerJigar Amin - OpenERP <jam@tinyerp.com>2012-07-16 11:54:16 +0530
commit68998d4c827bb080d262da593c7766e25fb3427e (patch)
tree4fbb30b8bba9b3eb2ada84591e0f06b97e05e9df /addons/web/static/src/js/coresetup.js
parentd23af2550dc93113bbc81f43f4d580a1aed2f575 (diff)
parent21832994f9d5feb158f593bfd69fec695e72e453 (diff)
[MERGE] openerp-web
bzr revid: jam@tinyerp.com-20120716062416-xa18xmtkj5mgj2ag
Diffstat (limited to 'addons/web/static/src/js/coresetup.js')
-rw-r--r--addons/web/static/src/js/coresetup.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js
index a00ca4002e5..a5a62b9bcc1 100644
--- a/addons/web/static/src/js/coresetup.js
+++ b/addons/web/static/src/js/coresetup.js
@@ -404,10 +404,11 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess
}
});
+
/**
* Event Bus used to bind events scoped in the current instance
*/
-instance.web.bus = new (instance.web.Class.extend(instance.web.EventDispatcherMixin, {
+instance.web.Bus = instance.web.Class.extend(instance.web.EventDispatcherMixin, {
init: function() {
instance.web.EventDispatcherMixin.init.call(this, parent);
var self = this;
@@ -425,7 +426,8 @@ instance.web.bus = new (instance.web.Class.extend(instance.web.EventDispatcherMi
});
});
}
-}))();
+})
+instance.web.bus = new instance.web.Bus();
/** OpenERP Translations */
instance.web.TranslationDataBase = instance.web.Class.extend(/** @lends instance.web.TranslationDataBase# */{