]> source.dussan.org Git - jquery.git/commitdiff
Make sure we use instead of in the delegate test.
authorjeresig <jeresig@gmail.com>
Mon, 21 Dec 2009 17:54:39 +0000 (12:54 -0500)
committerjeresig <jeresig@gmail.com>
Mon, 21 Dec 2009 17:54:39 +0000 (12:54 -0500)
test/delegatetest.html

index c580b290e5f152465b541dca210b7456bff90f6c..cf30d87e31b5cc023857fc32f405e5fa6a25b49c 100644 (file)
             $(".radio_test").live("change",makeChangeFunc("#radio"))\r
             $('textarea').live('change', makeChangeFunc("#textarea"))\r
             $('#input').live('change', makeChangeFunc("#text"))\r
-            $().bind('change', makeChangeFunc("#boundChange"))\r
+            $(document).bind('change', makeChangeFunc("#boundChange"))\r
             \r
             $("#text_submit").live("submit", makeChangeFunc("#textSubmit", true) )\r
             $("#password_submit").live("submit", makeChangeFunc("#passwordSubmit", true) )\r
             $("#submit_submit").live("submit", makeChangeFunc("#submitSubmit", true) )\r
-            $().bind('submit', makeChangeFunc("#boundSubmit"))\r
+            $(document).bind('submit', makeChangeFunc("#boundSubmit"))\r
             \r
         </script>\r
     </body>\r