QuoJS icon indicating copy to clipboard operation
QuoJS copied to clipboard

.off works only on events explicitly defined with .on

Open tarikbenmerar opened this issue 10 years ago • 2 comments

Hello, I have been faced with the following issue :

I have created a handler on the swiping event like this :

.swiping(handler);

when calling off('swiping', handler), it doesn't unhandle it. But, when I create the handler with on('swiping, handler), it works well. I haven't taken time to understand why from the source code, so I am reporting it as a bug.

Thanks,

tarikbenmerar avatar Dec 27 '14 13:12 tarikbenmerar

I'm sorry but now QuoJS only supports unsuscribers (off) when you use (on).

soyjavi avatar Apr 27 '15 02:04 soyjavi

@soyjavi Ok, thanks. I can leave with that.

tarikbenmerar avatar Apr 27 '15 12:04 tarikbenmerar