Message from JavaScript discussions

November 2016

— But sometimes you loose the sync of the data with your child nodes


I think that if you don't want to use react / add a virtual dom dependency to your project, you may use a strategy like this

— javierbyte your check the code?

— Https:// <- and manually call the methods of your childs when the data changes

Message permanent page

— Hahaha god example

— Floofies please let me know if I understood your problem correctly - also, it would be useful to know how renderProcedure is implemented, or some examples

Message permanent page

— Yes exactly

— renderProcedure is just a callback that gets executed by the views, it contains calls to jQuery-Template and manipulates the DOM, then adds event listeners to the dispatcher

Message permanent page

— When the important parts of the template are done loading (for instance containers for other views, or just the whole thing), resolve() is used to alert the controllerview to move on to the next view

Message permanent page

— So, a simple example would be this

— That callback is fed into the viewFactory as the callback argument

— And, then executed here

render: function (pageData) {
return new Promise (function (resolve, reject) {
renderProcedure(resolve, reject, pageData);

Message permanent page