don't use non-standard trim, dies on Travis CI

This commit is contained in:
Leo Horie 2015-11-12 23:42:27 -05:00
parent 4de23eb5c8
commit 5269f9b1ce

View file

@ -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)]