mirror of
https://github.com/jquery/jquery.git
synced 2026-01-26 03:08:20 -05:00
Fix test suite fail in IE6/7 on event:undelegate - was failing an if where it shouldn't
This commit is contained in:
@@ -960,7 +960,7 @@ jQuery.fn.extend({
|
||||
|
||||
undelegate: function( selector, types, fn ) {
|
||||
if ( arguments.length === 0 ) {
|
||||
return this.unbind( "live" );
|
||||
return this.unbind( "live" );
|
||||
|
||||
} else {
|
||||
return this.die( types, null, fn, selector );
|
||||
@@ -1036,7 +1036,7 @@ jQuery.each(["live", "die"], function( i, name ) {
|
||||
}
|
||||
|
||||
if ( name === "die" && !types &&
|
||||
origSelector && origSelector[0] === "." ) {
|
||||
origSelector && origSelector.charAt(0) === "." ) {
|
||||
|
||||
context.unbind( origSelector );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user