I'm just playing with backbone.js and some jQuery magic to prepare for some upcoming projects.
In case of a test, there is a table, whose rows are represented by the backbone view. They fully re-offer price changes After this the whole table is sorted based on a jQuery plugin (animated table sort), the rows are moved to a new position. Actually, this process works once, but next time, the rows are shown twice, everything ends in anarchy
Is it possible that between the DOM element and the backbone view Can not the link control this kind of change? Is there any work?
When you are developing with a model / view framework such as backbone.js or knockout.js , I think you need to rearrange your thinking and implementation so that the model can be displayed (like sorting), and do not allow them to be in the scene (like using the jquery plugin). / P>
If you use a visual-side script to do some fancy (animation is a good example), to ensure that your model is correctly updated, either Disabling it or binding by increasing it.
Also note that the animated sort plugin removes your table rows from the DOM, adds them to the new DIV, animates them, removes them from the DV, and restores them in the table I am thinking that after all this, the track of the TD has lost track of TD, and when it presents again after the change, then it is just adding a new set why F is the final set 'gone'.
Comments
Post a Comment