Changeset 28166
- Timestamp:
- 01/08/09 17:16:41 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/_libly.js
r28008 r28166 13 13 <author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author> 14 14 <license>MIT</license> 15 <version>0.1. 19</version>15 <version>0.1.20</version> 16 16 <minVersion>1.2</minVersion> 17 17 <maxVersion>2.0pre</maxVersion> … … 96 96 elem の offset を返却します。 97 97 return {top: 0, left: 0} 98 toStyleText(style): 99 スタイルが格納されているオブジェクトを 100 >|| 101 position: fixed; 102 left: 10px; 103 ||< 104 のような文字列に変換します。 98 105 ]]></detail> 99 106 </VimperatorPlugin>; … … 128 135 for (let prop in src) 129 136 dst[prop] = src[prop]; 130 return dst;137 return dst; 131 138 }, 132 139 A: function(iterable) { … … 343 350 offsetLeft = offsetLeft || null; 344 351 return {top: offsetTop, left: offsetLeft}; 352 }, 353 toStyleText: function(style) { 354 var result = ''; 355 for (let name in style) { 356 result += name.replace(/[A-Z]/g, function (c) ('-' + c.toLowerCase())) + 357 ': ' + 358 style[name] + 359 ';\n'; 360 } 361 return result; 345 362 } 346 363 // }}}
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)