Skip to content
Permalink
Browse files

Added a new clone function.

  • Loading branch information
jeresig committed Aug 17, 2006
1 parent 26580d2 commit 2a4c269a9b7c15477e032a24f92d08dfaeb026e4
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/jquery/jquery.js
@@ -557,6 +557,12 @@ jQuery.fn = jQuery.prototype = {
return jQuery.find(t,a);
}), 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

0 comments on commit 2a4c269

Please sign in to comment.
You can’t perform that action at this time.