requirejs - Should I return Marionette view instances from view modules? ---require JS marionettee -


If I am using JAVA with Marriott and I have a module to look for, then I Should an example be returned? (And why)

You should return the visual definition, not for example. Define

  (['Marienet'], Function (Meriannet) {return MeriNet.view extension ({standard: function} () {// some}});});  

This is the reason why, once the module needs to be evaluated and then caches the result. So if you want to return the example that would be the only example created from that scene, then you will not be able to create other examples.

I hope this will answer your question.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -