mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed .unbind('.namespace').
This commit is contained in:
parent
2c07690377
commit
75cb0d8d05
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user