[Pkg-javascript-commits] [pdf.js] 69/246: Add strict equalities in src/display/svg.js

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:26 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 4a82dac45b7faa6c4d0e825ce84e5b41f614077a
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Aug 1 12:41:03 2014 +0200

    Add strict equalities in src/display/svg.js
---
 src/display/svg.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/display/svg.js b/src/display/svg.js
index 6431ebf..0522f1c 100644
--- a/src/display/svg.js
+++ b/src/display/svg.js
@@ -162,7 +162,7 @@ var SVGGraphics = (function SVGGraphicsClosure(ctx) {
 
       var self = this;
       for (var i = 0; i < fnArrayLen; i++) {
-        if (OPS.dependency == fnArray[i]) {
+        if (OPS.dependency === fnArray[i]) {
           var deps = argsArray[i];
           for (var n = 0, nn = deps.length; n < nn; n++) {
             var obj = deps[n];
@@ -652,7 +652,7 @@ var SVGGraphics = (function SVGGraphicsClosure(ctx) {
       this.clippath = document.createElementNS(NS, 'svg:clipPath');
       this.clippath.setAttributeNS(null, 'id', current.clipId);
       var clipElement = current.element.cloneNode();
-      if (type == 'evenodd') {
+      if (type === 'evenodd') {
         clipElement.setAttributeNS(null, 'clip-rule', 'evenodd');
       } else {
         clipElement.setAttributeNS(null, 'clip-rule', 'nonzero');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list