From e8ed996aba603ab2336cf4bf6c98d2bd142dce25 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 27 Apr 2020 01:44:48 +0300 Subject: [PATCH] updated docs... Signed-off-by: Alex A. Naanou --- README.md | 2 +- object.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ec2c7c..6040a57 100755 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ var Item = object.Constructor('Item', { __init__: function(){ // call the "super" method... - object.parentCall(this.__init__, this) + object.parentCall(this.prototype.__init__, this) this.item_attr = 'instance attribute value' }, diff --git a/object.js b/object.js index 9d7bd72..828c2e4 100755 --- a/object.js +++ b/object.js @@ -98,6 +98,7 @@ function(obj, name, callback){ // passed explicitly. // NOTE: this is super(..) replacement... // NOTE: if method is root (no super method) this will return undefined. +// NOTE: for var parent = module.parent = function(method, name, that){