aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan Hobson Sayers <aidanhs@cantab.net>2013-08-20 20:19:17 +0100
committerAidan Hobson Sayers <aidanhs@cantab.net>2013-08-20 20:19:17 +0100
commit7bf034909f6d117320680200d14d0937cabdd787 (patch)
tree0c8d56acfe1c6ac2df12e687ae506c61e765f5ac
parent09c1168629557ab46818785004bcb95b696e254c (diff)
Only check needed > 0 if it was formerly > 0
-rw-r--r--src/runtime.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 868aacb6..33088ad9 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -412,9 +412,9 @@ var Runtime = {
if (needed) {
buffer.push(code);
needed--;
+ if (needed > 0) return '';
}
- if (needed > 0) return '';
var c1 = buffer[0];
var c2 = buffer[1];
var c3 = buffer[2];