mirror of
https://github.com/flynx/object.js.git
synced 2025-11-01 12:00:10 +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(){
|
__init__: function(){
|
||||||
// call the "super" method...
|
// call the "super" method...
|
||||||
object.parent(this.__init__, this).call(this)
|
object.parentCall(this.__init__, this)
|
||||||
|
|
||||||
this.item_attr = 'instance attribute value'
|
this.item_attr = 'instance attribute value'
|
||||||
},
|
},
|
||||||
|
|||||||
@ -131,7 +131,7 @@ module.parentCall =
|
|||||||
function(method, name, that, ...args){
|
function(method, name, that, ...args){
|
||||||
return typeof(name) == typeof('str') ?
|
return typeof(name) == typeof('str') ?
|
||||||
parent(method, name, that).call(that, ...args)
|
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",
|
"name": "ig-object",
|
||||||
"version": "2.4.1",
|
"version": "2.4.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "object.js",
|
"main": "object.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user