Fixed .unbind('.namespace').

This commit is contained in:
Scott González 2008-02-05 19:32:00 +00:00
parent 2c07690377
commit 75cb0d8d05

View file

@ -109,7 +109,7 @@ jQuery.event = {
if ( events ) {
// Unbind all events for the element
if ( types == undefined || types[0] == "." )
if ( types == undefined || (typeof types == "string" && types.charAt(0) == ".") )
for ( var type in events )
this.remove( elem, type + (types || "") );
else {