Commit 3bb82a34 authored by David Serduke's avatar David Serduke

Second part of the fix for #2071. An empty string "" was being sent to...

Second part of the fix for #2071.  An empty string "" was being sent to .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.
parent 1d7b7b94
...@@ -102,7 +102,7 @@ jQuery.event = { ...@@ -102,7 +102,7 @@ jQuery.event = {
if ( events ) { if ( events ) {
// Unbind all events for the element // Unbind all events for the element
if ( !types ) if ( types == undefined )
for ( var type in events ) for ( var type in events )
this.remove( elem, type ); this.remove( elem, type );
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment