Mercurial > nebulaweb3
annotate default/node_modules/shoestring/src/dom/first.js @ 0:1d038bc9b3d2 default tip
Up:default
author | Liny <dev@neowd.com> |
---|---|
date | Sat, 31 May 2025 09:21:51 +0800 |
parents | |
children |
rev | line source |
---|---|
0 | 1 //>>excludeStart("exclude", pragmas.exclude); |
2 define([ "shoestring", "dom/eq" ], function(){ | |
3 //>>excludeEnd("exclude"); | |
4 | |
5 /** | |
6 * Returns the first element of the set wrapped in a new `shoestring` object. | |
7 * | |
8 * @return shoestring | |
9 * @this shoestring | |
10 */ | |
11 shoestring.fn.first = function(){ | |
12 return this.eq( 0 ); | |
13 }; | |
14 | |
15 //>>excludeStart("exclude", pragmas.exclude); | |
16 }); | |
17 //>>excludeEnd("exclude"); |