X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=b72095433256ce10a5edfb64f15dbfa08913b8d8;hb=d9464547e0c328bf9f9b67e8d38621023a7e450e;hp=2c494d1157f98664dfbaa5ca74ed667971409771;hpb=a30b3211e68eeea04107059cc82b3c3026138337;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 2c494d1..b720954 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -257,9 +257,10 @@ jQuery.fn = jQuery.prototype = { * @cat Core */ pushStack: function( a ) { - var ret = jQuery(this); + var ret = jQuery(a); ret.prevObject = this; - return ret.setArray( a ); + //return ret.setArray( a ); + return ret; }, /** @@ -803,7 +804,7 @@ jQuery.fn = jQuery.prototype = { find: function(t) { return this.pushStack( jQuery.map( this, function(a){ return jQuery.find(t,a); - }) ); + }), t ); }, /** @@ -986,7 +987,7 @@ jQuery.fn = jQuery.prototype = { this.get(), t.constructor == String ? jQuery(t).get() : - t.length != undefined && !t.nodeName ? + t.length != undefined && (!t.nodeName || t.nodeName == "FORM") ? t : [t] ) ); },