Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make sure we use instead of in the delegate test.

  • Loading branch information...
commit d7a00234abb07658b47b098a318af334ff3b2509 1 parent 0d5bd17
John Resig authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  test/delegatetest.html
4  test/delegatetest.html
@@ -111,12 +111,12 @@
111 111
             $(".radio_test").live("change",makeChangeFunc("#radio"))
112 112
             $('textarea').live('change', makeChangeFunc("#textarea"))
113 113
             $('#input').live('change', makeChangeFunc("#text"))
114  
-            $().bind('change', makeChangeFunc("#boundChange"))
  114
+            $(document).bind('change', makeChangeFunc("#boundChange"))
115 115
             
116 116
             $("#text_submit").live("submit", makeChangeFunc("#textSubmit", true) )
117 117
             $("#password_submit").live("submit", makeChangeFunc("#passwordSubmit", true) )
118 118
             $("#submit_submit").live("submit", makeChangeFunc("#submitSubmit", true) )
119  
-            $().bind('submit', makeChangeFunc("#boundSubmit"))
  119
+            $(document).bind('submit', makeChangeFunc("#boundSubmit"))
120 120
             
121 121
         </script>
122 122
     </body>

1 note on commit d7a0023

John Resig

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.