Skip to content

Infinite Loop in .off() with empty namespace #1769

@mgol

Description

@mgol

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions