親ノード f.ex (jQuery) で同じイベント オブジェクトを再トリガーできます。e.pageX
バブル (f.ex )で同じイベント プロパティをキャプチャするには、最初にイベント オブジェクトをコピーしてトリガーに渡す必要があります。
var copy = $.extend(true, {}, e);
setTimeout(function() {
$(copy.target.parentNode).trigger(copy);
},500);
e.stopPropagation();
デモ: http://jsfiddle.net/GKkth/
編集
あなたのコメントに基づいて、私はあなたが次のようなものを探していると思います:
$.fn.bindFirst = function(type, handler) {
return this.each(function() {
var elm = this;
var evs = $._data(this).events;
if ( type in evs ) {
var handlers = evs[type].map(function(ev) {
return ev.handler;
});
$(elm).unbind(type).on(type, function(e) {
handler.call(elm, e, function() {
handlers.forEach(function(fn) {
fn.call(elm);
});
});
});
}
});
};
next
このプロトタイプを使用すると、必要なときに以前のすべてのハンドラーを同じ要素に実行する関数を保持する「プレミアム ハンドラー」をバインドできます。次のように使用します。
$('button').click(function() {
console.log('first');
}).click(function() {
console.log('second');
}).bindFirst('click', function(e, next) {
console.log('do something first');
setTimeout(next, 1000); // holds the other handlers for 1sec
});
デモ: http://jsfiddle.net/BGuU3/1/