Commit Graph
12 Commits
Author SHA1 Message Date
Paul O’Shannessy d83fe785c5 Stop transforming class -> className
Update the broken examples too (`git grep class=`)
2013-09-09 15:37:43 -07:00
Cheng Lou 78d305eb16 Fix backbone todo example bugs.
Fixed:
- New todo not submitting correctly (page refreshes. `preventDefault`
wasn't there.
- Old checked todo being removed will leave the checkmark on the next
todo replacing its position.
- Cannot change todo (`value`'s now a controlled field).
- `autofocus` (should be `autoFocus`, how ironic given the current
situation) on new todo input isn't working. Switched to manual
`focus()` in `componentDidMount` for now.
- More consistent breathing space between lines.
- Gutter at 80.

Added:
- Use todomvc-common base.css. The old one had to change ids to
classes. No longer necessary.
- Give `cx` a better name and move it in `Utils`.
- Trim input upon finishing edit.
- Remove todo if the new edited value is empty.
- Submit edited todo value on input blur.
- README to explain the existence of this example. Being able to
maintain a non-compilant version allows nice deviations from the
todomvc specs, such as animations, in the future.
2013-09-07 17:44:05 -04:00
Paul O’Shannessy 0c1f2720b3 Remove React.autoBind from examples 2013-07-17 11:33:31 -07:00
petehunt a808d48169 add localstorage, oops 2013-05-30 14:19:33 -07:00
petehunt a52512863e Clean up todomvc examples: autoBind(), onSubmit 2013-05-30 11:53:23 -07:00
petehunt 4297b1ad55 remove unused const 2013-05-30 11:53:23 -07:00
petehunt c7d2760521 Move backbone integration into its own mixin 2013-05-30 04:35:42 -07:00
petehunt 875782cc0a sync more with backbone 2013-05-30 04:18:40 -07:00
petehunt 036e11c9ee more backbone fixes 2013-05-30 04:11:07 -07:00
petehunt b4c0661dce Make more idiomatic 2013-05-30 03:38:42 -07:00
petehunt 56dbec46db Fix backbone todomvc example 2013-05-30 03:35:45 -07:00
Paul O’Shannessy 75897c2dcd Initial public release 2013-05-29 12:54:02 -07:00