bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-04-27 01:36:59 +03:00
parent e97156350e
commit a8958d255d
3 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ var Item = object.Constructor('Item', {
__init__: function(){
// call the "super" method...
object.parent(this.__init__, this).call(this)
object.parentCall(this.__init__, this)
this.item_attr = 'instance attribute value'
},

View File

@ -131,7 +131,7 @@ module.parentCall =
function(method, name, that, ...args){
return typeof(name) == typeof('str') ?
parent(method, name, that).call(that, ...args)
: parent(method, that).call(that, ...args) }
: parent(method, name).call(name, ...[that, ...args]) }

View File

@ -1,6 +1,6 @@
{
"name": "ig-object",
"version": "2.4.1",
"version": "2.4.2",
"description": "",
"main": "object.js",
"scripts": {