Ticket #11758 (closed enhancement: worksforme)
off(): $(document).off() does not disable event handlers, binded via another $(document).on() handler
|Reported by:||chestozo||Owned by:|
Here I wrote a little demo for the bug: http://jsbin.com/ofejov/edit#source
I know, that this is not really a bug, better called - it is a design issue. When someone uses off() he is not able to disable any handler that is already in events queue because events queue for delegate and live events is composed before real handlers are called, here: https://github.com/jquery/jquery/blob/master/src/event.js#L447
And if some handler off() method is called - queue is not modifed and this allows "disabled" handlers to be triggered.