Closed parkm closed 10 years ago
Ah, I know what the problem is.
So the Bubble calls this._super.init.call(this)
Which translates to GameObject.prototype.init.call([Object bubble])
Then GameObject calls this._super.init.call(this)
using the bubble instance as its this
, which causes a recursion loop. I'm looking into fixing it now.
Eh, this is getting too complex. We'll just have to call the super methods on the prototype the old fashioned way.
BasicObject.init.call(this)
etc.
I was trying to create an object structure like:
But I was running into stack overflows.
this._super
inGameObject
was returningGameObject.prototype
I believe. So doing this caused a loop: