From 75cb0d8d05a0d44cca1529f891fe2a3de2061194 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 5 Feb 2008 19:32:00 +0000 Subject: [PATCH] Fixed .unbind('.namespace'). --- src/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5