PDA

View Full Version : [4.0.1] bug in EventBus.js, method dispatch



xadhoom
26 May 2011, 6:24 AM
the dispatch method of Ext.app.EventBus has a wrong return, it should just call

event.fire.apply(event, Array.prototype.slice.call(args, 1));

and not

return event.fire.apply(event, Array.prototype.slice.call(args, 1)); (like current)

this leads to calling only first registered callback of one event, and ignoring all other callbacks if one event has more than one listener.

removing the "return" works for me.

xadhoom
31 May 2011, 1:05 AM
no comments on this topic?

steeeveb
1 Jun 2011, 1:10 AM
I can comfirm the problem... With xadhoom suggestion it seems to be OK now!

Many thanks xadhoom

xadhoom
1 Jun 2011, 1:14 AM
thanks!

maybe will be fixed in upcoming 4.0.2 ? hope so!

steeeveb
1 Jun 2011, 1:20 AM
It would be wonderful if in 4.0.2 will also be included some docs on eventbus usage