(function(B){B.fn.extend({copyEvents:function(A){B.event.copy(B(A),this);
return this
},copyEventsTo:function(A){B.event.copy(this,B(A));
return this
}});
B.event.copy=function(A,E){var F=B.data(A[0],"events");
if(!A.size()||!F||!E.size()){return 
}E.each(function(){for(var C in F){for(var D in F[C]){B.event.add(this,C,F[C][D],F[C][D].data)
}}})
}
})(jQuery);