0
|
1 //>>excludeStart("exclude", pragmas.exclude);
|
|
2 define([ "shoestring" ], function(){
|
|
3 //>>excludeEnd("exclude");
|
|
4
|
|
5 /**
|
|
6 * Clone and return the current set of nodes into a new `shoestring` object.
|
|
7 *
|
|
8 * @return shoestring
|
|
9 * @this shoestring
|
|
10 */
|
|
11 shoestring.fn.clone = function() {
|
|
12 var ret = [];
|
|
13
|
|
14 this.each(function() {
|
|
15 ret.push( this.cloneNode( true ) );
|
|
16 });
|
|
17
|
|
18 return shoestring( ret );
|
|
19 };
|
|
20
|
|
21 //>>excludeStart("exclude", pragmas.exclude);
|
|
22 });
|
|
23 //>>excludeEnd("exclude");
|