Created
July 15, 2010 16:09
-
-
Save codenothing/477163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rootjQuery = jQuery( document ); | |
jQuery.live = function( selector, type, fn ) { | |
// Binding object of events to a selector | |
if ( fn === undefined && typeof type == 'object' ) { | |
for ( var i in type ) { | |
rootjQuery.delegate( selector, i, type[ i ] ); | |
} | |
} else { | |
// Single event binding | |
rootjQuery.delegate( selector, type, fn ); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment