Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Fix candidate URL on election page. #842

Merged
merged 1 commit into from
Oct 15, 2015

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Oct 15, 2015

  • Use URL helper on election page.
  • Delete unused code.

* Use URL helper on election page.
* Delete unused code.
@@ -154,7 +153,7 @@ function drawComparison(results) {
var $comparison = $('#comparison');
var context = {selected: results.slice(0, 10), options: results.slice(10)};
$comparison.prepend(comparisonTemplate(context));
new dropdown.Dropdown($comparison.find('.js-dropdown'));
new dropdown.Dropdown($comparison.find('.js-dropdown'));

Choose a reason for hiding this comment

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

Do not use 'new' for side effects.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we turn off this warning?

noahmanger pushed a commit that referenced this pull request Oct 15, 2015
Fix candidate URL on election page.
@noahmanger noahmanger merged commit 62821af into fecgov:develop Oct 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants