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.

Show HN: Backbone JS Key-Value Observing

12 pointsby bruthalmost 14 years ago
https://github.com/bruth/backbone-kvo<p>I've come to appreciate the various libraries in my current JavaScript stack including: jQuery, Backbone (and thus Underscore), and RequireJS. The one thing missing is key-value observing between my DOM elements and my data. I was hoping the jQuery datalink API would have matured, but the scope of the API is limited and the implementation is somewhat confusing to me.<p>So I decided to start writing one that initially assumes Backbone (since it has events built in). Since Backbone's controllers aren't traditional controllers, I linked the DOM element via the View to the Model the View represents. There are quite a few assumptions being made in the implementation and lots of room for improvement in the API, names of things, and performance.<p>If you clone the repo, you can just open index.html since I pre-built the JS for the time being. Thanks.

no comments

no comments