mojito icon indicating copy to clipboard operation
mojito copied to clipboard

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

Open jithine opened this issue 10 years ago • 0 comments

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

jithine avatar May 07 '14 18:05 jithine