YahooArchive / mojito

[archiving soon] Yahoo! Mojito Framework
BSD 3-Clause "New" or "Revised" License
1.57k stars 214 forks source link

Get error after calling mojitProxy.refreshView() in a composite mojit. #908

Open ghost opened 11 years ago

ghost commented 11 years ago

Get the following error on client side after calling MojitProxy.refreshView() in a composite mojit: Uncaught Error: Cannot read property 'type' of undefined

The composite has a child mojit without binder and mojit_view_id. Then around this line: https://github.com/yahoo/mojito/blob/develop/lib/app/autoload/mojito-client.client.js#L952 child.viewId is undefined and it finally cause the error.

caridy commented 11 years ago

What version of mojito are you using? Can you provide a simple code to reproduce the issue?

ghost commented 11 years ago

Created a demo of the issue. You can access "/" to reproduce it. https://git.corp.yahoo.com/yiwu/demo-908 My mojito version is 0.5.1.

caridy commented 11 years ago

On Trello for investigation:

https://trello.com/card/client-gh908-get-error-after-calling-mojitproxy-refreshview-in-a-composite-mojit/504e5e3b7cd1578456fc430f/325