mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
use jquery for dblclick handler to access event.target
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user