0
|
1 //>>excludeStart("exclude", pragmas.exclude);
|
|
2 define([ "shoestring" ], function(){
|
|
3 //>>excludeEnd("exclude");
|
|
4
|
|
5 /**
|
|
6 * Returns the indexed element wrapped in a new `shoestring` object.
|
|
7 *
|
|
8 * @param {integer} index The index of the element to wrap and return.
|
|
9 * @return shoestring
|
|
10 * @this shoestring
|
|
11 */
|
|
12 shoestring.fn.eq = function( index ){
|
|
13 if( this[index] ){
|
|
14 return shoestring( this[index] );
|
|
15 }
|
|
16
|
|
17 return shoestring([]);
|
|
18 };
|
|
19
|
|
20 //>>excludeStart("exclude", pragmas.exclude);
|
|
21 });
|
|
22 //>>excludeEnd("exclude");
|