From 6f510757ab47b4377c8af954418d216afda37949 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Wed, 20 Jun 2007 21:13:56 +0000 Subject: [PATCH] use jquery for dblclick handler to access event.target --- build/test/data/testrunner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index ba6fc06..e6cfc1e 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 ); -- 1.7.10.4