Skip to content
Permalink
Browse files

use jquery for dblclick handler to access event.target

  • Loading branch information
jzaefferer committed Jun 20, 2007
1 parent 03c623c commit 6f510757ab47b4377c8af954418d216afda37949
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 );

0 comments on commit 6f51075

Please sign in to comment.
You can’t perform that action at this time.