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 3bb82a3
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.