staugaard/sproutcore-resource-todos — pull request #1 by topherfangio (2011-10-15 17:31:35+00:00)
Title: Rudimentary support for saving completed tasks.

I realize this is not ideal, but I very quickly implemented support for saving all tasks when any of them are completed.

This should probably be moved into an SC view, but when I tried that, I ran into issues with calling `todo.set()` so I gave up.

Anyway, this shows the basics of using an SC observer to watch for changes and update accordingly. Interesting note: I originally put the observer on the Todo model, but it never fired. Does SC.Resource not extend from SC.Object?