Commit 6880fe84 authored by Bryce Johnson's avatar Bryce Johnson

Fix leftover or inadvertantly removed comments.

parent 3ca521d6
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
} }
bindEvents() { bindEvents() {
// TODO: Check if this is being bound correctly
return this.togglePriorityButton.on('click', this, this.onTogglePriorityClick); return this.togglePriorityButton.on('click', this, this.onTogglePriorityClick);
} }
...@@ -51,6 +50,7 @@ ...@@ -51,6 +50,7 @@
$target.find('.empty-message').addClass('hidden'); $target.find('.empty-message').addClass('hidden');
} }
$label.detach().appendTo($target); $label.detach().appendTo($target);
// Return if we are not persisting state
if (!persistState) { if (!persistState) {
return; return;
} }
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
url, url,
type: 'DELETE' type: 'DELETE'
}); });
// Restore empty message
if (!$from.find('li').length) { if (!$from.find('li').length) {
$from.find('.empty-message').removeClass('hidden'); $from.find('.empty-message').removeClass('hidden');
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment