Brad Dunbar
00a69ccab3
Fix #1615 - Update localstorage code.
2012-09-04 18:15:39 -04:00
Ted Han
71d0fe3dcc
escape todo items.
2012-08-14 00:31:41 -05:00
Hossein Bukhamsin
639819c7ef
prefer on over bind
2012-07-14 12:29:54 +03:00
Luke Lee
1abfefd16b
Fix broken reference to missing underscore.js file in todos example.
2012-06-13 16:04:12 -05:00
Brad Dunbar
fd25368994
Correct minor mistake in todo example.
2012-04-23 13:25:15 -04:00
Michael Yong
f71bc0d53b
fix setting of id for todo model
2012-04-06 23:43:31 +08:00
Cole Krumbholz
2d9d77cf2f
Corrected link to address issue #1132 (Broken link in annotated source)
2012-03-25 15:02:45 -07:00
Jeremy Ashkenas
9899a81775
tweaking addy's todo changes.
2012-03-21 11:40:26 -04:00
addyosmani
3cf1bb4ed5
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.
2012-02-27 21:41:27 +00:00
Jeremy Ashkenas
ab164c450d
Overhauling 'validate' -- Receives the computed new state of the attrs, not just the delta. Now runs on model create, raising an exception if you try to 'new' and invalid model ... also runs even if changed silently.
2012-01-23 18:16:20 -05:00
Jeremy Ashkenas
4719659298
Fixes #841 , adding upgrading jquery, classname --> class in the docs.
2012-01-12 15:26:46 -05:00
Jeremy Ashkenas
6b3ff7b035
Fixes #9 , Backbone comparators can now be either sort() or sortBy() iterators.
2012-01-06 14:53:43 -05:00
Jeremy Ashkenas
1626fa7447
Fixes #734
2011-12-06 16:21:20 -05:00
Jeremy Ashkenas
66800f5c8e
Upgrading our Underscore.js test dep to 1.2.2
2011-11-23 13:30:07 -05:00
Kyle Chaplin
0cd5b938d3
Fix Todos example by importing the currently shipped version of jQuery that is located in /test/vendor.
2011-10-30 14:18:42 -05:00
Jeremy Ashkenas
32ae113298
upgrading to the latest version of Underscore.
2011-10-29 11:24:36 -04:00
Jeremy Ashkenas
cfc98b0f18
Tiny tweaks to the todo app demo.
2011-08-18 21:10:21 -04:00
Jeremy Ashkenas
89bdddde9c
merging the jcoglan's patch
2011-07-29 10:31:10 -04:00
Jeremy Ashkenas
9d2811a639
Backbone.js 0.5.2
2011-07-26 13:31:51 -04:00
James Coglan
f77033d3c0
Remove coupling from model to view in example app by listening to model's 'destroy' event to remove the view.
2011-07-22 14:40:11 +01:00
Loren Sands-Ramshaw
245acb0821
removed unused var
2011-06-18 17:07:37 -04:00
Jeremy Ashkenas
cf3215139a
initial draft of a 0.5.0 branch
2011-05-26 10:54:28 -04:00
Jeremy Ashkenas
7b494c1e6d
Upgrading to Underscore 1.1.6 for test deps.
2011-04-18 09:19:04 -04:00
Jeremy Ashkenas
d97d8bf336
Upgrading Backbone.js tests to Underscore 1.1.5
2011-03-20 20:26:17 -04:00
Jeremy Ashkenas
164ad725c7
Upgrading Backbone.js (test) dependencies to latest jQuery, Zepto, and Underscore.
2011-02-07 11:50:22 -05:00
Jeremy Ashkenas
3d8fe92f1e
Issue #78 . Changes the Backbone.sync API to enable passing through of options ... like {data} in fetch()
2010-12-13 10:15:09 -05:00
Jeremy Ashkenas
3505bde58e
Backbone.js 0.3.3
2010-12-01 13:27:10 -05:00
Jeremy Ashkenas
3d36c62f67
merging in willmoffat's patch
2010-11-01 18:50:09 -04:00
Will Moffat
315ba7302a
Added TodoView.remove()
...
Called by Todo Model so that the model doesn't have to manipulate the DOM directly.
2010-11-01 15:32:49 -07:00
Jeremy Ashkenas
4c5b74c4e6
Saving todo-in-editing on blur.
2010-10-26 14:05:06 -04:00
Jeremy Ashkenas
8e0bd05431
Only one open todo item at a time.
2010-10-26 13:23:42 -04:00
Jeremy Ashkenas
de4b2b35d9
Fixing backbone-localstorage links.
2010-10-26 11:50:39 -04:00
Jeremy Ashkenas
cc744682dd
Reworking the localStorage plugin.
2010-10-26 10:12:49 -04:00
Jeremy Ashkenas
4109040004
Adding the Todos example to the homepage
2010-10-26 09:33:21 -04:00
Jeremy Ashkenas
0ddef3b6da
Building the annotated source.
2010-10-25 17:39:11 -04:00
Jeremy Ashkenas
22f5a33a0e
Fixing line-heights on multi-line todos
2010-10-25 17:01:46 -04:00
Jeremy Ashkenas
6efd643e14
simplifying localStorage interface a bit.
2010-10-25 16:40:09 -04:00
Jeremy Ashkenas
edbdeb1189
Removing unnecessarily bound functions.
2010-10-25 16:08:30 -04:00
Jeremy Ashkenas
d6e57b334c
Adding a hover-able destroy icon
2010-10-25 15:48:34 -04:00
Jeremy Ashkenas
62f43bde9d
cleaning up generated CSS
2010-10-25 15:44:31 -04:00
Jeremy Ashkenas
3a47769a7e
Nice improvements to the rendering ... more templates, less javascript.
2010-10-25 15:33:33 -04:00
Jeremy Ashkenas
092131db0a
A little further on.
2010-10-25 14:58:22 -04:00
Jeremy Ashkenas
6b6d3a707c
updating CSS style. Fixing ordering.
2010-10-25 14:21:28 -04:00
Jeremy Ashkenas
f6bd4df573
another mootools remmnant.
2010-10-25 12:51:33 -04:00
Jeremy Ashkenas
37b8fb72c4
First semi-working version of the jQuer-ified example.
2010-10-25 12:49:02 -04:00
Jeremy Ashkenas
9daf5d11d8
Moving the example to an 'examples' branch for the time being...
2010-10-21 09:24:11 -04:00
Jeremy Ashkenas
c025904432
Further cleaning up the todos example.
2010-10-19 17:59:53 -04:00
Jeremy Ashkenas
6ea50e6a1e
moving edit UI out into a template.
2010-10-19 17:20:40 -04:00
Jeremy Ashkenas
8282270d56
Starting to move to templates for the todo example.
2010-10-19 16:42:35 -04:00
Jeremy Ashkenas
c98cfeb4f2
moving 'demos' to 'examples'
2010-10-19 15:03:59 -04:00