mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40:08 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e97156350e
commit
a8958d255d
@ -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'
|
||||
},
|
||||
|
||||
@ -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]) }
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-object",
|
||||
"version": "2.4.1",
|
||||
"version": "2.4.2",
|
||||
"description": "",
|
||||
"main": "object.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user