Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Is your question more about how you manage object instances on the JS side for decoupled components, or more about the communication between the client and server? Also, regarding M.getComplexValue(), you may want to look into the "Promise" pattern as a way to minimize callback-hell while allowing all operations to be (potentially) asynchronous. Commented Sep 19, 2013 at 0:05
  • It's more about whether to use defined objects in JS (as in the example) or an anonymous object with dynamically populated fields Commented Sep 19, 2013 at 7:41