From: Mike Taylor Date: Tue, 3 Jun 2014 15:30:22 +0000 (+0100) Subject: Fix a perfectly understandable logic error that anyone could have made X-Git-Tag: 1.0.0~554 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=73bd4116400c77dd20a6023def7ca187197ad755;p=mkws-moved-to-github.git Fix a perfectly understandable logic error that anyone could have made and which it would be churlish to blame me for. --- diff --git a/src/mkws-handlebars.js b/src/mkws-handlebars.js index 67b3b19..a8dc142 100644 --- a/src/mkws-handlebars.js +++ b/src/mkws-handlebars.js @@ -18,7 +18,7 @@ Handlebars.registerHelper('mkws-paragraphs', function(obj, nPara, nSent) { if (nPara === undefined || nPara.hasOwnProperty('hash') || nPara == 0 || nPara > obj.length) { nPara = obj.length; } - if (nSent === undefined || nSent.hasOwnProperty('hash') || nSent == 0 || nSent > obj.length) { + if (nSent === undefined || nSent.hasOwnProperty('hash') || nSent == 0) { nSent = Infinity; }