Skip to content
Permalink
Browse files
Second part of the fix for #2071. An empty string "" was being sent t…
…o .bind() and when the events were being cleared it went in to an infinite recursive loop till memory was out. The test was !types in the function and changing it to types == undefined fixed the error.
  • Loading branch information
davids549 committed Dec 19, 2007
1 parent 1d7b7b9 commit 3bb82a34de18b8b8e80893571d65080bf5a4702b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event.js
@@ -102,7 +102,7 @@ jQuery.event = {

if ( events ) {
// Unbind all events for the element
if ( !types )
if ( types == undefined )
for ( var type in events )
this.remove( elem, type );
else {

0 comments on commit 3bb82a3

Please sign in to comment.