jQuery: The Write Less, Do More JavaScript Library

Changeset 4226

Show
Ignore:
Timestamp:
12/19/07 01:48:05 (8 months ago)
Author:
davidserduke
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/event.js

    r4225 r4226  
    103103        if ( events ) { 
    104104            // Unbind all events for the element 
    105             if ( !types ) 
     105            if ( types == undefined ) 
    106106                for ( var type in events ) 
    107107                    this.remove( elem, type );