]> source.dussan.org Git - jquery.git/commit
Fix #13471. $().on(".xyz"...) should avoid later crash.
authorDave Methvin <dave.methvin@gmail.com>
Tue, 26 Feb 2013 17:19:04 +0000 (12:19 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 26 Feb 2013 17:24:56 +0000 (12:24 -0500)
commitf5163914fa1a751aa5bf10ce48c4b5307d65ed90
tree2610efe983970b947d0095e77f967d2e46b9aa29
parentdabdea70eea81edc4ca32db8c269af3de90ff3f7
Fix #13471. $().on(".xyz"...) should avoid later crash.

If the event type is an empty string we end up hanging in .off() which makes for
mighty hard debugging. Instead treat it as a no-op. Docs seem clear this is not
allowed.
src/event.js
test/unit/event.js