aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-04-13 23:10:32 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-13 23:14:14 -0400
commit149a040794b3b52bc392281fab68aba40c7018ce (patch)
treeb5a78938c02709e0e1b41c3bac3c43ad45449c73 /src
parent72ddc8c64518a748071fd662b21fc995fbd8e96c (diff)
downloadjquery-149a040794b3b52bc392281fab68aba40c7018ce.tar.gz
jquery-149a040794b3b52bc392281fab68aba40c7018ce.zip
Fix test suite fail in IE6/7 on event:undelegate - was failing an if where it shouldn't
Diffstat (limited to 'src')
-rw-r--r--src/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index dd48e7f77..bfd263078 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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 );