Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Exception on mp.destroyChildren() when used again after refreshView() #1373

Open
jithine opened this issue May 7, 2014 · 0 comments
Open

Comments

@jithine
Copy link

jithine commented May 7, 2014

It crashes in this flow

mp.destroyChildren()
mp.refreshView()
...
mp.destroyChildren()
mp.refreshView()

At this point there is an exception here https://github.com/yahoo/mojito/blob/42f6b2d8cf73181392a0594a309e347e42c6a7c4/lib/app/autoload/mojit-proxy.client.js#L363

What is happening is getChildren() called here https://github.com/yahoo/mojito/blob/42f6b2d8cf73181392a0594a309e347e42c6a7c4/lib/app/autoload/mojit-proxy.client.js#L354 has this data

this.getChildren()
Object {rightPanelLocation: undefined}

rightPanelLocation is the child of mojit in action. refreshView() on parent mojit should have populated rightPanelLocation's binder data correctly

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

No branches or pull requests

1 participant