diff --git a/jquery.titan.js b/jquery.titan.js index 7799891..853c7d6 100644 --- a/jquery.titan.js +++ b/jquery.titan.js @@ -1166,7 +1166,7 @@ function date_format(format, data, tzoffset) { //String Truncation function truncate(limit, post) { - if(!limit) { post = 10; } + if(!limit) { limit = 10; } if(!post) { post = "..."; } var s = this.toString(); if(s.length > limit){ @@ -1177,4 +1177,4 @@ function truncate(limit, post) { } return s; } -String.prototype.trunc = truncate; \ No newline at end of file +String.prototype.trunc = truncate;