aboutsummaryrefslogtreecommitdiffstats
path: root/i_love_echo.js
diff options
context:
space:
mode:
authoranekos2008-11-11 20:57:14 +0000
committeranekos2008-11-11 20:57:14 +0000
commitf6c4d5bf4e997887f9c7c48c6f1025cb22b1bba1 (patch)
tree2c3495f6d722ece24cba290e0a717e37944d5cb7 /i_love_echo.js
parent90ed1ca31af98109fe18158450117345f7c16c35 (diff)
downloadvimperator-plugins-f6c4d5bf4e997887f9c7c48c6f1025cb22b1bba1.tar.bz2
this.value の全てのメソッドを使用できるように、__noSuchMethod__ を追加。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@23272 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'i_love_echo.js')
-rw-r--r--i_love_echo.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/i_love_echo.js b/i_love_echo.js
index bbf886b..31ea2fa 100644
--- a/i_love_echo.js
+++ b/i_love_echo.js
@@ -13,7 +13,7 @@
* * 各メソッドやgetterは常にvalue(またはxhr)メンバを持つObject
* * メソッドやgetterはvalue値に相応しいメソッドまたはgetterである
*
- *
+ *
* Example:
* 1 2 3 4 5 6 7 8
* :echo $x("http://d.hatena.ne.jp/teramako/rss").open().send().xml.toObject.get("item").map(function(item) item.title).value
@@ -129,6 +129,9 @@ $c.prototype = {
},
toString: function(){
return this.value.toString();
+ },
+ __noSuchMethod__: function(name, args){
+ return this.value[name].apply(this.value, args);
}
};
// }}}