Skip to content

Nikita Korzhavin js-3 hw #8

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

VKNS
Copy link

@VKNS VKNS commented Aug 7, 2019

messy, but works

Copy link

@svvald svvald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decent work in general with a couple of remarks. I approve it since there is a deadline for your final project already

var storage = JSON.parse(localStorage.getItem('todos'));
if (!storage) {
storage = {};
updateLocalStorage(storage);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would fail since updateLocalStorage is a function expression and hoisted

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for that. So stupid mistake. I fixed that in commit (hope it is visible here)

/*---------------- filter construction ---------------------- */

var createFilters = function() {
var ParentDiv = document.createElement('form');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not camelCase here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

? true
: progressOption === 'not done'
? false
: 'dont filter';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I don't find using chained ternary operators a good idea since it makes code less readable

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