Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Knockout.js sample to use features from 2.0.0 #48

Merged
merged 3 commits into from
Jan 4, 2012
Merged

Update Knockout.js sample to use features from 2.0.0 #48

merged 3 commits into from
Jan 4, 2012

Conversation

rniemeyer
Copy link
Contributor

Knockout.js recently released version 2.0.0. Here are a number of updates to the todo example to take advantage of new features in 2.0 and some additional effort to keep the markup as clean and free from logic as possible.

This includes removing the dependency on jQuery Templates (and jQuery itself).

@boushley
Copy link
Contributor

boushley commented Jan 3, 2012

@rniemeyer Could you take a look at issue #4 #4 I'd be interested in your opinion on that issue and whether we should continue checking for keycode === 13 or switch to custom bindings. Is this something we could/should do as part of this update to Knockout.js 2.0?

@rniemeyer
Copy link
Contributor Author

It is a fair point and not hard to implement. We do provide the event object to these handlers for things like this (checking keycode, etc...), but it is cleaner/better for a function on the view model to not be concerned with how it is being called by the view.

I'll take care of the changes.

@boushley
Copy link
Contributor

boushley commented Jan 3, 2012

Awesome! I really appreciate it!

boushley added a commit that referenced this pull request Jan 4, 2012
Update Knockout.js sample to use features from 2.0.0
@boushley boushley merged commit 79ceec9 into tastejs:master Jan 4, 2012
@boushley
Copy link
Contributor

boushley commented Jan 4, 2012

Great @rniemeyer these changes look good.

@boushley
Copy link
Contributor

boushley commented Jan 4, 2012

@rniemeyer If you could possibly add a "Mark all complete" checkbox, that would be awesome. If not, I'll look into adding it sometime later this week.

@rniemeyer
Copy link
Contributor Author

@boushley I'll take care of it. Thanks.

gustaff-weldon pushed a commit to gustaff-weldon/todomvc that referenced this pull request Dec 23, 2013
Update Knockout.js sample to use features from 2.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants