Changeset 36238
- Timestamp:
- 12/22/09 23:03:25 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/_libly.js
r36116 r36238 13 13 <author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author> 14 14 <license>MIT</license> 15 <version>0.1.2 8</version>15 <version>0.1.29</version> 16 16 <minVersion>2.3pre</minVersion> 17 17 <maxVersion>2.3pre</maxVersion> … … 44 44 通常、next には引数を渡す必要はありません。 45 45 (任意の引数を渡したい場合は配列で渡します。) 46 返値は以下のオブジェクトです 47 >|| 48 { 49 original: オリジナルの関数 50 current: 現在の関数 51 restore: 元に戻すための関数 52 } 53 ||< 46 54 bind(obj, func): 47 55 func に obj を bind します。 … … 231 239 return func.call(self, function (_args) next.apply(self, _args || args), args); 232 240 }; 233 return [next, current]; 241 return libly.$U.extend({ 242 original: next, 243 current: current, 244 restore: function () (obj[name] = next) 245 }, [next, current]); 234 246 }, 235 247 bind: function(obj, func) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)