Commit 4696df73 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Truncate utility fix

Handle undefined variables
parent 836b7c37
......@@ -173,6 +173,7 @@
}
synnefo.util.truncate = function(string, size, append, words) {
if (string === undefined) { return "" };
if (string.length <= size) {
return string;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment