summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/coresetup.js
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2012-07-16 13:01:08 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2012-07-16 13:01:08 +0530
commita14e505845e8b71fb80ed1ec9f7c8a604c577373 (patch)
treee20b819cb93d57b269842d3703192bc58eb3d711 /addons/web/static/src/js/coresetup.js
parent5bba0c8e6b899c29ff2102b94ebf6abf290e1402 (diff)
parent21832994f9d5feb158f593bfd69fec695e72e453 (diff)
[MERGE] Merged from trunk.
bzr revid: jra@tinyerp.com-20120716073108-7zlweyipa1u4l1oh
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# */{