cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryce Curtis <>
Subject Re: [JS] channel.js pub/sub/unsub question
Date Thu, 31 May 2012 02:27:46 GMT
I would say that if you subscribe multiple times with the same event
handler, then it should only be called once.  This is based upon what
W3C DOM spec says...

On Wed, May 30, 2012 at 4:54 PM, Filip Maj <> wrote:
> Trying to answer a question regarding our pub/sub implementation in
> cordova-js. Need to fill in some tests before I pull the patch in.
> Question: if I have an event handler function, and I `subscribe` it to an
> event (channel) x times, when that channel fires, should I expect it to
> fire x times, or only once?
> Root issue:
> Pull request from GH to patch:
> Thanks for the input,
> Fil

View raw message