soyjavi / QuoJS

Micro #JavaScript Library for Mobile Devices
MIT License
2.07k stars 236 forks source link

.off works only on events explicitly defined with .on #140

Open tarikbenmerar opened 9 years ago

tarikbenmerar commented 9 years ago

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,

soyjavi commented 9 years ago

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

tarikbenmerar commented 9 years ago

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