Added a new clone function.
This commit is contained in:
parent
26580d2675
commit
2a4c269a9b
6
src/jquery/jquery.js
vendored
6
src/jquery/jquery.js
vendored
|
@ -558,6 +558,12 @@ jQuery.fn = jQuery.prototype = {
|
||||||
}), arguments );
|
}), arguments );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clone: function(deep) {
|
||||||
|
return this.pushStack( jQuery.map( this, function(a){
|
||||||
|
return a.cloneNode( deep != undefined ? deep : true );
|
||||||
|
}), arguments );
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all elements from the set of matched elements that do not
|
* Removes all elements from the set of matched elements that do not
|
||||||
* match the specified expression. This method is used to narrow down
|
* match the specified expression. This method is used to narrow down
|
||||||
|
|
Loading…
Reference in a new issue