From 6aba4983e5f37fb63c565fb89527d8995a01486f Mon Sep 17 00:00:00 2001 From: dhrname Date: Wed, 1 Jan 2014 00:48:44 +0900 Subject: [PATCH] =?utf8?q?base.js=E3=81=AE=E3=82=B9=E3=83=9A=E3=83=83?= =?utf8?q?=E3=82=AF=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tool/funcproto/FuncSpecRunner.html | 19 +++++++++++++++++++ tool/funcproto/base.js | 14 +------------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/tool/funcproto/FuncSpecRunner.html b/tool/funcproto/FuncSpecRunner.html index b8add53..e575704 100644 --- a/tool/funcproto/FuncSpecRunner.html +++ b/tool/funcproto/FuncSpecRunner.html @@ -38,6 +38,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + diff --git a/tool/funcproto/base.js b/tool/funcproto/base.js index 4467fa3..e6f587d 100644 --- a/tool/funcproto/base.js +++ b/tool/funcproto/base.js @@ -4,7 +4,7 @@ Copyright (c) 2013 dhrname*/ if (!this.base) { this.base= function(obj) { - if (!arguments[0] || (typeof arguments[0] !== "string")) { + if (!arguments[0]) { throw new Error("no arguments error"); } var F = function() {}, @@ -23,16 +23,4 @@ if (!this.base) { F = void 0; return s; }; - this.$parent = this.base( function() { - this.hoge = function() { - return 12; - }; - this.$child = this.base( function() { - this.hoge = function() { - return this.$parent.hoge(); - }; - }); - }); - this.$parent.$child.hoge(); //12 - } } \ No newline at end of file -- 2.11.0