From 1dc40534acc0da09aa6836c689bfdca9d9ea1d0b Mon Sep 17 00:00:00 2001 From: Vit Brunner Date: Mon, 5 Jan 2015 19:42:01 +0100 Subject: [PATCH] Nicer negation --- source/scripts/controllers.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/scripts/controllers.js.coffee b/source/scripts/controllers.js.coffee index f811b4d..06344e0 100644 --- a/source/scripts/controllers.js.coffee +++ b/source/scripts/controllers.js.coffee @@ -49,7 +49,7 @@ angular.module("sideBySide.controllers", []) length = poems.getActive().length active = poem.meta.Active if (length > min or not active) and (length < max or active) - poem.meta.Active = not poem.meta.Active + poem.meta.Active = ! active route.update 'display', filter.getFilter() # TODO else notification