Permalink
Browse files

Fixed .unbind('.namespace').

  • Loading branch information...
1 parent 2c07690 commit 75cb0d8d05a0d44cca1529f891fe2a3de2061194 @scottgonzalez scottgonzalez committed Feb 5, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event.js
View
2 src/event.js
@@ -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 {

0 comments on commit 75cb0d8

Please sign in to comment.