extending sprite and implementing interface results in class that does not call super constructor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jeash |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I have create a class with the following definition:
class EntityView extends Sprite, implements IPoolable
{
....
}
This work correctly when targetting cpp, and flash, but for js I get run-time errors such as:
Uncaught TypeError: Cannot read property 'length' of null NMERTS.js:983
jeash.display.
jeash.display.
com.asliceofcra
com.asliceofcra
com.asliceofcra
com.asliceofcra
js.Boot.
jeash.events.
jeash.events.
jeash.display.
jeash.display.
jeash.display.
jeash.display.
jeash.display.
jeash.display.
js.Boot.
I have looked at the generated source code, and the constructor looks like this:
com.asliceofcra
When I change it to this:
com.asliceofcra
It functioned correctly again.
I have found that no matter what I put in the constructor, whether I add arguments, put other statements, etc, I always end up with an empty constructor (as above)
HAving considered this bug somewhat, it occurs to me that this could be an issue with the haxe js target, rather than jeash itself. In which case, I apologise.