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

not able to use mojito-data-addon if the mojit is lazy loaded via mojitProxy.invoke #1159

Closed
ghost opened this issue Jun 8, 2013 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Jun 8, 2013

In my mojit I have two actions: "index" and "lazy", where "index" will invoke "lazy" from binder. The mojito-data-addon is included but in "lazy" action, when calling ac.data.set(), there is an error:

TypeError: Object # has no method 'set'

Apparently it is because mojito passing a data property in invoke command, and it make data addon failed to init itself.
https://github.com/yahoo/mojito/blob/develop/lib/app/autoload/mojit-proxy.client.js#L204
https://github.com/yahoo/mojito/blob/develop/lib/app/addons/ac/data.common.js#L25

I created a simple app the demo the issue:
https://git.corp.yahoo.com/yiwu/demo-lazyload-issue

@ghost ghost assigned caridy Jun 8, 2013
@caridy
Copy link
Contributor

caridy commented Jun 10, 2013

I was able to reproduce this. thanks for the repro case, I will try to land a fix asap.

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