[FIX] prevent a crash in ie9 (invalid setTimeout) (bus)
authorGéry Debongnie <ged@odoo.com>
Fri, 24 Oct 2014 07:20:59 +0000 (09:20 +0200)
committerGéry Debongnie <ged@odoo.com>
Wed, 29 Oct 2014 07:38:18 +0000 (08:38 +0100)
The call to this.poll return undefined, and IE9 does not like undefined
values in a timeout.

addons/bus/static/src/js/bus.js

index 6ca515f..f85ccb8 100644 (file)
@@ -14,7 +14,7 @@
         },
         start_polling: function(){
             if(!this.activated){
-                setTimeout(this.poll(), 1);
+                this.poll();
                 this.stop = false;
             }
         },