mojito icon indicating copy to clipboard operation
mojito copied to clipboard

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

Open ghost opened this issue 12 years ago • 3 comments

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.

ghost avatar Jan 11 '13 10:01 ghost

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

caridy avatar Jan 11 '13 17:01 caridy

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.

ghost avatar Jan 14 '13 02:01 ghost

On Trello for investigation:

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

caridy avatar Jan 19 '13 02:01 caridy