]> source.dussan.org Git - jquery.git/commitdiff
use jquery for dblclick handler to access event.target
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 20 Jun 2007 21:13:56 +0000 (21:13 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 20 Jun 2007 21:13:56 +0000 (21:13 +0000)
build/test/data/testrunner.js

index ba6fc061c66a4700875326835e57f19caec8661c..e6cfc1eb003b3d717b0e181b790b281a7b04b034 100644 (file)
@@ -125,13 +125,13 @@ function test(name, callback, nowait) {
                        else
                                n.style.display = "none";
                };
-               b.ondblclick = function(event) {
+               $(b).dblclick(function(event) {
                        var target = jQuery(event.target).filter("strong").clone();
                        if ( target.length ) {
                                target.children().remove();
                                location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text()));
                        }
-               };
+               });
                li.appendChild( b );
                li.appendChild( ol );