3 ms·
I took the approach of making a class called a "ModelView" which adds a few things - one of which is an "On Render" event that fires after the view renders. we
by jakejake 14y ago
I took the approach of making a class called a "ModelView" which adds a few things - one of which is an "On Render" event that fires after the view renders. we do all of our jquery binding in our onrender function and so whenever the view re-draws, onrender is fired and all of the jquery stuff will be re-bound.
It would be nice to have the view re-drawn more intelligently so things don't need to be re-drawn and re-bound each time. But, I couldn't think of a generic way to do that without knowing the details of the view.
If anybody has any interest, the code I wrote is at http://phreeze.com http://phreeze.com