Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removeChild Issue #3

Open
frojan opened this issue Apr 17, 2014 · 1 comment
Open

removeChild Issue #3

frojan opened this issue Apr 17, 2014 · 1 comment

Comments

@frojan
Copy link

frojan commented Apr 17, 2014

when i try to use this._view.scene.removeChild(xxx); it throws an error
Uncaught TypeError: Cannot read property 'iRemoveEntity' of null awayjs.next.js:23440

and i find displayObject._iAssignedPartition value is null. i do not know why. :(

@Miha-ha
Copy link

Miha-ha commented Jan 19, 2015

in Scene.ts:

    public iUnregisterEntity(displayObject:DisplayObject)
    {
        if (displayObject.partition)
            this.iUnregisterPartition(displayObject.partition);

        if (displayObject.isEntity)
            displayObject._iAssignedPartition.iRemoveEntity(displayObject);
    }

displayObject._iAssignedPartition value is null

Please, fix it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants