Fix leftover or inadvertantly removed comments.

This commit is contained in:
Bryce Johnson 2016-09-30 10:35:59 +02:00
parent 3ca521d633
commit 6880fe8400

View file

@ -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 @@
$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 @@
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');
} }