-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Add Rivets implementation + CR changes from #1226 + merged #1295
Conversation
jscs is ✅ |
Can we update this to [email protected] and the latest todomvc-common? |
d5463a4
to
be539bf
Compare
@arthurvr done, please review. |
be539bf
to
ea58a2e
Compare
Ping. |
@altmind mind squashing this into a single commit? |
@altmind You shouldn't start doing ping comments after one day :) We'll be happy to review this but we're all busy :) Anyways, thanks for working on this! Two other things:
|
ea58a2e
to
4de9d22
Compare
|
||
* [Guide](http://rivetsjs.com/docs/guide/) | ||
* [Binder Reference](http://rivetsjs.com/docs/reference/) | ||
* [Rivets on Stack Overflow](http://stackoverflow.com/questions/tagged/rivets.js) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stack overflow and linking up the official site twice is okay but isn't there anything else we can bring up in here? Interesting blogposts maybe?
b93a164
to
bdfe7dd
Compare
Can this be merged already? I addressed and fixed all the comments. It takes weeks just to merge working implementation :( |
We don't get notifications on new commits to a pull request. And please stop the complaining. This is Open Source and we're all doing this in our free time. By opening a pull request you're implicitly asking us to do work (yes, reviewing a pull request takes a lot of work). We'll try to get this merged soon. |
I just want things to connect and something better to happen. For common benefit. I care. I am struggling to create implementation for 3 months already #1176 And it always a little bit that is missing. And dangling PRs are slowly decaying(as new requirements require PR changes). And its demoralizing that i cannot do anything else to help :( |
Please do note, though, that's mainly because at #1226 the author got inactive and we needed to close it due to inactivity. Anyways, let's move on, I will review all the code again (hopefully this evening) but I'm pretty hopeful that we'll be able to land this soon. |
// Toggles the todo as complete / active and saves. | ||
toggle: function (todo) { | ||
todo.completed = !todo.completed; | ||
this.save(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as @sindresorhus pointed out last week to me
http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html
What Sam said. For the rest the code looks really good! Thanks for your hard work on this one! |
364d20c
to
8bc2231
Compare
Fixed #1295 (comment) and #1295 (comment) Seems like thats it. |
!node_modules/director/build/director.js | ||
|
||
node_modules/rivets/* | ||
!node_modules/rivets/dist/rivets.bundled.min.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gitignore looks good but this isn't actually committed.
8bc2231
to
718792e
Compare
|
||
localStorage['todos-rivets'] = JSON.stringify(this.all); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing semicolon. Please run jshint next time :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arthurvr strange, both IDEA and jscs show no jscs errors (using .jscsrc from repo root)
D:\docs\devel\todomvc>jscs -c .jscsrc D:\docs\devel\todomvc\examples\rivets\js\stores\todo-store.js
No code style errors found.
Should I do anything about it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also run JSHint ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arthurvr oops. added semicolon :)
718792e
to
8b0eba9
Compare
@altmind I will test some more this evening but the code looks good to me. Thanks for the updates. |
👍 Going to give people some time to complain before landing but this LGTM. Would fix #1180. |
Hi @altmind I just tested this app for memory leaks and it looks like this has a few. ⛲ Steps to reproduce
These should be addressed before we merge |
I'm going to close this due to inactivity. Happy to reopen when you're willing to finish things up. This is sadly the 3th for the rivets example which we need to close due to inactivity.
Now you can see yourself why ;) |
This is full and exact duplicate of @mikeric implementation in #1226 with following requested changes:
New PR as I'm pushing from my personal fork