From 0a749023cb91accb1a5c8d097adba59b411fa4da Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 24 Jan 2014 14:19:24 -0500 Subject: [PATCH] fixing if statements inside a @first / @last block --- public/src/templates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/templates.js b/public/src/templates.js index a004553b7c..06295dc79e 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -378,7 +378,7 @@ checkConditional(namespace + d, data[d]); checkConditional('!' + namespace + d, !data[d]); - if (blockInfo) { + if (blockInfo && blockInfo.iterator) { checkConditional('@first', blockInfo.iterator === 0); checkConditional('!@first', blockInfo.iterator !== 0); checkConditional('@last', blockInfo.iterator === blockInfo.total);