From 5269f9b1ce741a28003a5023abf8f71798f3a62a Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 12 Nov 2015 23:42:27 -0500 Subject: [PATCH] don't use non-standard trim, dies on Travis CI --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index cc0e4f1f..9a70070c 100644 --- a/mithril.js +++ b/mithril.js @@ -512,7 +512,7 @@ void (function (global, factory) { // eslint-disable-line // was a trusted string if (nodes[0].nodeType === 1 || nodes.length > 1 || - !nodes[0].nodeValue.trim() + (nodes[0].nodeValue.trim && !nodes[0].nodeValue.trim()) ) { clear(cached.nodes, cached) nodes = [$document.createTextNode(data)]