jQuery: The Write Less, Do More JavaScript Library

Changeset 4649

Show
Ignore:
Timestamp:
02/05/08 19:32:00 (7 months ago)
Author:
scott.gonzalez
Message:

Fixed .unbind('.namespace').

Files:
1 modified

Legend:

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

    r4601 r4649  
    110110        if ( events ) { 
    111111            // Unbind all events for the element 
    112             if ( types == undefined || types[0] == "." ) 
     112            if ( types == undefined || (typeof types == "string" && types.charAt(0) == ".") ) 
    113113                for ( var type in events ) 
    114114                    this.remove( elem, type + (types || "") );