Commit 75cb0d8d authored by Scott González's avatar Scott González

Fixed .unbind('.namespace').

parent 2c076903
...@@ -109,7 +109,7 @@ jQuery.event = { ...@@ -109,7 +109,7 @@ jQuery.event = {
if ( events ) { if ( events ) {
// Unbind all events for the element // 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 ) for ( var type in events )
this.remove( elem, type + (types || "") ); this.remove( elem, type + (types || "") );
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment