Skip to content

Instantly share code, notes, and snippets.

@jboesch
jboesch / gist:310785
Created February 22, 2010 04:32 — forked from rkatic/gist:310747
(function($){
$.each(["live", "die"], function( i, name ) {
var method = $.fn[ name ];
$.fn[ name ] = function( types, data, fn, origSelector ) {
if ( typeof types === "object" && !types.preventDefault ) {
for ( var key in types ) {
method.call( this, key, data, types[key], origSelector );
}