From 5f9e087075271c64e0aa10270124586656146bcd Mon Sep 17 00:00:00 2001 From: Jacob Evan Shreve Date: Fri, 7 Feb 2014 23:48:22 -0500 Subject: [PATCH] Fix default value in String.prototype.trunc --- jquery.titan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;