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){