* @cat Core
*/
pushStack: function( a ) {
- var ret = jQuery(this);
+ var ret = jQuery(a);
ret.prevObject = this;
- return ret.setArray( a );
+ return ret;
},
/**
find: function(t) {
return this.pushStack( jQuery.map( this, function(a){
return jQuery.find(t,a);
- }) );
+ }), t );
},
/**
this.get(),
t.constructor == String ?
jQuery(t).get() :
- t.length != undefined && !t.nodeName ?
+ t.length != undefined && (!t.nodeName || t.nodeName == "FORM") ?
t : [t] )
);
},
var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i;
// Handle passing in a number to a CSS property
- if ( value.constructor == Number && type == "curCSS" && !exclude.test(prop) )
+ if ( value && value.constructor == Number && type == "curCSS" && !exclude.test(prop) )
return value + "px";
return value;