0
|
1 //>>excludeStart("exclude", pragmas.exclude);
|
|
2 define([ "shoestring" ], function(){
|
|
3 //>>excludeEnd("exclude");
|
|
4
|
|
5 /**
|
|
6 * Add elements matching the selector to the current set.
|
|
7 *
|
|
8 * @param {string} selector The selector for the elements to add from the DOM
|
|
9 * @return shoestring
|
|
10 * @this shoestring
|
|
11 */
|
|
12 shoestring.fn.add = function( selector ){
|
|
13 var ret = [];
|
|
14 this.each(function(){
|
|
15 ret.push( this );
|
|
16 });
|
|
17
|
|
18 shoestring( selector ).each(function(){
|
|
19 ret.push( this );
|
|
20 });
|
|
21
|
|
22 return shoestring( ret );
|
|
23 };
|
|
24
|
|
25 //>>excludeStart("exclude", pragmas.exclude);
|
|
26 });
|
|
27 //>>excludeEnd("exclude");
|