From 92e355dc35b3ae470f625b6bc0d69bc85d097fce Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 25 Apr 2012 18:44:28 -0700 Subject: [PATCH] Address review comments. --- src/evaluator.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/evaluator.js b/src/evaluator.js index bbf5b6e62..5e6ee9343 100644 --- a/src/evaluator.js +++ b/src/evaluator.js @@ -504,7 +504,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { var args = [], obj; var text = ''; - var chunk = null; + var chunk = ''; var font = null; while (!isEOF(obj = parser.getObj())) { if (isCmd(obj)) { @@ -529,15 +529,15 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { chunk += args[0]; break; case "'": - text += args[0] + ' '; + chunk += args[0] + ' '; break; case '"': - text += args[2] + ' '; + chunk += args[2] + ' '; break; } // switch - if (chunk !== null) { + if (chunk !== '') { text += fontCharsToUnicode(chunk, font.translated.properties); - chunk = null; + chunk = ''; } args = [];