Skip to content

Instantly share code, notes, and snippets.

@padolsey
Created July 23, 2009 17:59
Show Gist options
  • Save padolsey/153316 to your computer and use it in GitHub Desktop.
Save padolsey/153316 to your computer and use it in GitHub Desktop.
(function(_init){
jQuery.fn.init = function(selector, context){
var jQueryObj = new _init(selector, context);
jQueryObj.valueOf = function(){
return this.length;
};
return jQueryObj;
};
})(jQuery.fn.init);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment