Making it more human readable

This commit is contained in:
Tine Jozelj
2016-08-04 15:22:45 +02:00
committed by GitHub
parent 9604674c65
commit 64d77d2491
+5 -1
View File
@@ -69,7 +69,11 @@
throw new TypeError(message);
}
typeof target === 'undefined' ? target = '' : target = 'target="' + target + '"';
if (typeof target === 'undefined') {
target = '';
} else {
target = 'target="' + target + '"';
}
var buffer = document.createElement('span'),
nodes = line.childNodes;