From 10f30dfa2ee53e213c4e55baf032d7b8942bc028 Mon Sep 17 00:00:00 2001 From: Barney Carroll Date: Thu, 3 Mar 2016 15:26:09 +0000 Subject: [PATCH] Remove redundant logic as per @niothiel's tip --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index dd6deabc..2aeac88e 100644 --- a/mithril.js +++ b/mithril.js @@ -96,7 +96,7 @@ classes.push(match[2]) } else if (match[3][0] === "[") { var pair = /\[(.+?)(?:=("|'|)(.*?)\2)?\]/.exec(match[3]) - cell.attrs[pair[1]] = pair[3] || (pair[2] ? "" : "") + cell.attrs[pair[1]] = pair[3] || "" } }