git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c623c
)
use jquery for dblclick handler to access event.target
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Wed, 20 Jun 2007 21:13:56 +0000
(21:13 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Wed, 20 Jun 2007 21:13:56 +0000
(21:13 +0000)
build/test/data/testrunner.js
patch
|
blob
|
history
diff --git
a/build/test/data/testrunner.js
b/build/test/data/testrunner.js
index
ba6fc06
..
e6cfc1e
100644
(file)
--- 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 );