Skip to content

Conversation

@zyahav
Copy link
Contributor

@zyahav zyahav commented Jan 15, 2017

html, css, js

ex10/js.js Outdated
@@ -0,0 +1,10 @@
var fff = _.debounce(function() {
Copy link
Owner

Choose a reason for hiding this comment

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

rename fff (garbage! stop doing this) to toggleSuggestions.

ex10/js.js Outdated
}
}, 500)

$( '.input' ).on('input', function() { fff(); });
Copy link
Owner

Choose a reason for hiding this comment

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

$( '.input' ).on('input', function() { fff(); });
is the same as:
$( '.input' ).on('input', fff);

ex10/style.css Outdated
border-bottom: 1px dashed black;
}

.last {
Copy link
Owner

Choose a reason for hiding this comment

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

Please use :nth-last-child (https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-child) instead (this will mean you will not need to remember to add a last class.

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