Created
April 27, 2010 16:02
-
-
Save badsyntax/380912 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ripped from http://is.gd/bK13R | |
$.fn._init = $.fn.init; | |
$.getLastSelector = function() { | |
return $.getLastSelector.lastSelector; | |
}; | |
$.fn.init = function(selector, context) { | |
if (typeof selector === 'string') $.getLastSelector.lastSelector = selector; | |
return new $.fn._init(selector, context); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment