Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Give your JS App some Backbone with Models, Views, Collections, and Events

branch: master

This branch is 0 commits ahead and 0 commits behind master

1 comment

Updating with latest version from TodoMVC

As requested in #1044, here's the latest version of the Backbone.js
Todo app as rewritten by our project.

We started out with the 0.5 base and re-wrote it to cover some subtle
best practices we thought were important. Ours, like the current one
also uses the latest Backbone and jQuery 1.7.1. As part of the changes,
we also introduced two differences in the UX:

* When in edit mode, if a todo item is emptied and then blurred, the
item is removed. This contrasts with the current behaviour of the app
in the official repo at the moment which maintains the empty item in
place (albeit looking a little broken
http://addyosmani.com/gyazo/bbd4cd.png)

* We removed the tooltip occasionally seen when a user was trying to
add a new item. Having discussed this with developers frequently using
the Todo app as an initial point of reference, it was a consensus that
the notification didn't really offer that much value nor did it really
show anything that Backbone-specific worth keeping it in for.

We usually enforce examples separate concerns (Models, Views etc.) into
their own directories pre-build, but I've reformatted it to match the
structure your current app takes so that it can be more easily diffed.

I hope it's worth considering our version for a merge. We're happy to
take on any feedback needed to update it to address concerns you might
have.
latest commit 3cf1bb4ed5
Addy Osmani authored February 27, 2012
Octocat-spinner-32 docs
Octocat-spinner-32 examples
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE Backbone.js 0.9.0 January 30, 2012
Octocat-spinner-32 README.md linking to backbonejs.org directly January 22, 2012
Octocat-spinner-32 Rakefile merging in zmack's enhanced Rakefile November 27, 2010
Octocat-spinner-32 backbone-min.js
Octocat-spinner-32 backbone.js Fixes #1053 -- updating comment to reflect changed style of validate() February 27, 2012
Octocat-spinner-32 index.html Fixes #1038 - Document changes to `view.$`. February 22, 2012
Octocat-spinner-32 index.js Adding an index.js for npm, Issue #207 February 06, 2011
Octocat-spinner-32 package.json options.silent respected in _prepareModel ... prepping for a 0.9.1 February 02, 2012
README.md
 ____                     __      __                                                 
/\  _`\                  /\ \    /\ \                                   __           
\ \ \ \ \     __      ___\ \ \/'\\ \ \____    ___     ___      __      /\_\    ____  
 \ \  _ <'  /'__`\   /'___\ \ , < \ \ '__`\  / __`\ /' _ `\  /'__`\    \/\ \  /',__\ 
  \ \ \ \ \/\ \ \.\_/\ \__/\ \ \\`\\ \ \ \ \/\ \ \ \/\ \/\ \/\  __/  __ \ \ \/\__, `\
   \ \____/\ \__/.\_\ \____\\ \_\ \_\ \_,__/\ \____/\ \_\ \_\ \____\/\_\_\ \ \/\____/
    \/___/  \/__/\/_/\/____/ \/_/\/_/\/___/  \/___/  \/_/\/_/\/____/\/_/\ \_\ \/___/ 
                                                                       \ \____/      
                                                                        \/___/       
(_'_______________________________________________________________________________'_)
(_.———————————————————————————————————————————————————————————————————————————————._)

Backbone supplies structure to JavaScript-heavy applications by providing models key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.

For Docs, License, Tests, pre-packed downloads, and everything else, really, see: http://backbonejs.org

To suggest a feature, report a bug, or general discussion: http://github.com/documentcloud/backbone/issues/

All contributors are listed here: http://github.com/documentcloud/backbone/contributors

Special thanks to Robert Kieffer for the original philosophy behind Backbone. http://github.com/broofa

Something went wrong with that request. Please try again.