Skip to content
Browse files

Make sure we use instead of in the delegate test.

  • Loading branch information...
1 parent 0d5bd17 commit d7a00234abb07658b47b098a318af334ff3b2509 @jeresig jeresig committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/delegatetest.html
View
4 test/delegatetest.html
@@ -111,12 +111,12 @@
$(".radio_test").live("change",makeChangeFunc("#radio"))
$('textarea').live('change', makeChangeFunc("#textarea"))
$('#input').live('change', makeChangeFunc("#text"))
- $().bind('change', makeChangeFunc("#boundChange"))
+ $(document).bind('change', makeChangeFunc("#boundChange"))
$("#text_submit").live("submit", makeChangeFunc("#textSubmit", true) )
$("#password_submit").live("submit", makeChangeFunc("#passwordSubmit", true) )
$("#submit_submit").live("submit", makeChangeFunc("#submitSubmit", true) )
- $().bind('submit', makeChangeFunc("#boundSubmit"))
+ $(document).bind('submit', makeChangeFunc("#boundSubmit"))
</script>
</body>

1 comment on commit d7a0023

@jeresig
jQuery Foundation member

Weird, the commit message got munged. It should say "Make sure we use jQuery(document) instead of jQuery() in the delegate test.

Please sign in to comment.
Something went wrong with that request. Please try again.