[bz4999348] A mojit controller on the client cannot dispatch child mojits that have a 'server' affinity #55

add0n opened this Issue Mar 30, 2012 · 0 comments

2 participants


If a parent mojit tries to dispatch a child with a controller that has a 'server' affinity from the client, there is a very non-descriptive error that occurs:

dispatch.common.js:112 Uncaught TypeError: Cannot call method 'join' of undefined

This is because there are now YUI dependencies configured for the "client" environment, so a null list is created. The join call expects a full list.

This is a tricky problem, because we are entirely inside of the Mojito Kernel at the point where a controller is dispatching children, and we must suddenly make an RPC call to another runtime. I'm not sure how to go about fixing this.

I think users should be able to have mojit controllers on the client dispatch children with 'server' affinities, however. It seems like restricting children by the parent affinity is the wrong thing to do.

@rwaldura rwaldura closed this Oct 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment