"textContent" : "innerText";
return e == undefined ?
- this.length && this[0][ type ] :
+ jQuery.map(this, function(a){ return a[ type ]; }).join('') :
this.each(function(){ this[ type ] = e; });
},
prop: function(elem, value, type){
// Handle executable functions
if ( value.constructor == Function )
- return value.call( elem )
+ return value.call( elem );
// Handle passing in a number to a CSS property
if ( value.constructor == Number && type == "css" )
clean: function(a) {
var r = [];
-
+
for ( var i = 0, al = a.length; i < al; i++ ) {
var arg = a[i];
arg = div.childNodes;
}
- if ( arg.nodeType )
+ if ( arg[0] == undefined )
r.push( arg );
else
r = jQuery.merge( r, arg );