From f6c4d5bf4e997887f9c7c48c6f1025cb22b1bba1 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 11 Nov 2008 20:57:14 +0000 Subject: this.value の全てのメソッドを使用できるように、__noSuchMethod__ を追加。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@23272 d0d07461-0603-4401-acd4-de1884942a52 --- i_love_echo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'i_love_echo.js') 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); } }; // }}} -- cgit v1.2.3