TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Backbone.js sample app with Sinatra Backend

46 pointsby ryandotsmithover 14 years ago

4 comments

bgrinsover 14 years ago
That was quick! I was wanting to see some sample apps with backbone, thanks for sharing.<p>By the way, if you have the .0.1.1 release, you can call this.handleEvents(); inside of the initialize() function on the template instead of the render() function. This prevents having to rebind the element every time you call render. This probably won't be a huge issue considering that you are only binding one event each time, but it is probably best practice anyway.
jashkenasover 14 years ago
Unfortunately, the example app is fairly broken and quickly XSS'd at the moment. Hopefully Ryan can fix it up.<p>EDIT: Yep -- quickly fixed and deployed. Thanks, Ryan.
评论 #1798814 未加载
grncdrover 14 years ago
Another one chiming in to say thanks. Backbone is really intriguing and this post does a nice job of walking through the basics of how to use it.
nielsover 14 years ago
Thanks for this. Just in the process of migrating my app to Backbone.js.