// Copy the events from the original to the clone
if ( events === true )
this.find("*").andSelf().each(function(i){
+ if (this.nodeType == 3)
+ return;
var events = jQuery.data( this, "events" );
for ( var type in events )
}
+ return undefined;
}
return this.each(function(){
jQuery.each(elems, function(){
var elem = clone ?
- this.cloneNode( true ) :
+ jQuery( this ).clone( true )[0] :
this;
// execute all scripts after the elements have been injected
else
jQuery.swap( elem, props, getWH );
- return val;
+ return Math.max(0, val);
}
return jQuery.curCSS( elem, name, force );