Permalink
Browse files

Make sure we use instead of in the delegate test.

  • Loading branch information...
1 parent 0d5bd17 commit d7a00234abb07658b47b098a318af334ff3b2509 @jeresig jeresig committed Dec 21, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/delegatetest.html
View
@@ -111,12 +111,12 @@ <h2>Submit Tests</h2>
$(".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

Member

jeresig commented on d7a0023 Dec 21, 2009

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.