aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-02-05 19:32:00 +0000
committerScott González <scott.gonzalez@gmail.com>2008-02-05 19:32:00 +0000
commit75cb0d8d05a0d44cca1529f891fe2a3de2061194 (patch)
treef6189b741c300eda032f699acd46e4655aa4564d
parent2c07690377522119891784ec11c89e87f0a12545 (diff)
downloadjquery-75cb0d8d05a0d44cca1529f891fe2a3de2061194.tar.gz
jquery-75cb0d8d05a0d44cca1529f891fe2a3de2061194.zip
Fixed .unbind('.namespace').
-rw-r--r--src/event.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 9f384fbc8..927beda4e 100644
--- a/src/event.js
+++ b/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 {