diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-06-20 21:13:56 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-06-20 21:13:56 +0000 |
commit | 6f510757ab47b4377c8af954418d216afda37949 (patch) | |
tree | a9d86ee0ffe6fa97f8562549e9ceb7088dd7ab00 /build | |
parent | 03c623c35f429ce29e927b457ff0a45d8d643f2e (diff) | |
download | jquery-6f510757ab47b4377c8af954418d216afda37949.tar.gz jquery-6f510757ab47b4377c8af954418d216afda37949.zip |
use jquery for dblclick handler to access event.target
Diffstat (limited to 'build')
-rw-r--r-- | build/test/data/testrunner.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index ba6fc061c..e6cfc1eb0 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -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 ); |