Originally reported by Christian Meixner <christian@…> at: http://bugs.jquery.com/ticket/15073
IF there is an event registered with namespace and you try to remove this with an an accidentally empty namespace-string, then .off() enters an inifinite loop, locking up the browser window (at least on Firefox).
Example:
$(document).on('click.a', handler),
$(document).off('click.');
Note the trailing dot after "click"!
I am aware that this is not valid code, but it should not fail with an infinite loop blocking the browser.
Issue reported for jQuery 1.11.0