comparison default/node_modules/shoestring/src/dom/width.js @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
1 //>>excludeStart("exclude", pragmas.exclude);
2 define([ "shoestring", "dom/dimension" ], function(){
3 //>>excludeEnd("exclude");
4
5 /**
6 * Gets the width value of the first element or sets the width for the whole set.
7 *
8 * @param {float|undefined} value The value to assign.
9 * @return shoestring
10 * @this shoestring
11 */
12 shoestring.fn.width = function( value ){
13 return shoestring._dimension( this, "width", value );
14 };
15
16 //>>excludeStart("exclude", pragmas.exclude);
17 });
18 //>>excludeEnd("exclude");