]> git.parisson.com Git - pdf.js.git/commitdiff
use const instead of var
authorAndreas Gal <andreas.gal@gmail.com>
Sat, 21 May 2011 05:40:28 +0000 (07:40 +0200)
committerAndreas Gal <andreas.gal@gmail.com>
Sat, 21 May 2011 05:40:28 +0000 (07:40 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index c3e110bd03d538e1a761233653186f0e63e039ce..cd3f87b7f03b1bbbf4a75b9b4c8b71a3923484e4 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -2116,10 +2116,10 @@ var CanvasGraphics = (function() {
         };
     }
 
-    var LINE_CAP_STYLES = [ "butt", "round", "square" ];
-    var LINE_JOIN_STYLES = [ "miter", "round", "bevel" ];
-    var NORMAL_CLIP = {};
-    var EO_CLIP = {};
+    const LINE_CAP_STYLES = [ "butt", "round", "square" ];
+    const LINE_JOIN_STYLES = [ "miter", "round", "bevel" ];
+    const NORMAL_CLIP = {};
+    const EO_CLIP = {};
 
     constructor.prototype = {
         beginDrawing: function(mediaBox) {