function jQuery() {
return new jQuery.prototype.init( arguments );
}
jQuery.prototype = {
constructor: jQuery,
init: function( selector, context ) {
this[0] = "lala";
this[1] = "tratata";
this.length = 2;
return this;
},
length: 0
}
jQuery.prototype.init.prototype = jQuery.prototype;
alert( JSON.stringify( jQuery() ) );