Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Anyway to get rid of getViewFunc()? #6

Open
cjroebuck opened this Issue Oct 18, 2011 · 1 comment

Comments

Projects
None yet
2 participants

Hi Morriz, me again ;)

Is there anyway to get rid of the getViewFunc() from the Backbone code. I know this is needed to send back the modified DOM to the client when its run on the server but wouldn't it be cool if we could listen to some DOM mutation event and be called back once the DOM has finished being modified or perhaps automatically wrap each router handler function with the res.send code, possibly using _.wrap?

Owner

Morriz commented Oct 18, 2011

Hi CJ, I agree the getViewFunc approach is ugly and unwanted. I never got to polish the product, and thought it more explicit for the demo, so I didn't touch it….but you can!

:)


On 18Oct, 2011, at 15:21 , cjroebuck wrote:

Hi Morriz, me again ;)

Is there anyway to get rid of the getViewFunc() from the Backbone code. I know this is needed to send back the modified DOM to the client when its run on the server but wouldn't it be cool if we could listen to some DOM mutation event or perhaps automatically wrap each router handler function with the res.send code, possibly using _.wrap?

Reply to this email directly or view it on GitHub:
#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment