aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.js')
-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 {