Closed wilsonpage closed 11 years ago
Functionality is proven working by examples/express. But we do still need testing writing for the inflation of views.
Two things need to be tested:
Handling models that have come embedded in the View is slightly more complicated. I have proposed that if/when a model is found on the view module being constructed, we fire and event or call a defined function so that the developer has the opportunity to swap out the stale display only model with a real client-side model (eg. from indexedDB). The view then get re-associated with a different model, so that when/if the view is re-rendered then the data is extracted from the correctly decoupled model.
Why is the formatting so shit above?
I have some basic test for .toJSON()
but these still need to be expanded.
We need a rather more complex test as follows:
.toJSON()
to get the JSON representation of the view.var layout = fruitmachine(json);
layout.setup();
layout.el
to match the original element.This has been done
Do you still need someone to do this? I'm about to start playing around server side fruitmachine for tutorial-5.