]> git.parisson.com Git - pdf.js.git/commitdiff
Address review comments.
authorBrendan Dahl <brendan.dahl@gmail.com>
Thu, 26 Apr 2012 01:44:28 +0000 (18:44 -0700)
committerBrendan Dahl <brendan.dahl@gmail.com>
Thu, 26 Apr 2012 01:44:28 +0000 (18:44 -0700)
src/evaluator.js

index bbf5b6e628b6c6ddcb09d5a2e22f6adc012404aa..5e6ee9343b3001d5f1f1e92899f4322fefc76e82 100644 (file)
@@ -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 = [];