]> 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 (13:40 +0800)
committervingtetun <21@vingtetun.org>
Mon, 13 Jun 2011 03:40:49 +0000 (11:40 +0800)
pdf.js

diff --git a/pdf.js b/pdf.js
index 06928ca093c2e4a884d66dd0a5d41686e12fc13d..37c93a4ad802cd28375dd85052fc9f9e5831d9b0 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -2130,10 +2130,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) {