[Pkg-javascript-commits] [pdf.js] 89/246: Add strict equalities in src/core/pattern.js

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:29 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 ee371fe6b20720de52aa7856732544094ac03330
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Aug 1 21:48:37 2014 +0200

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

diff --git a/src/core/pattern.js b/src/core/pattern.js
index 7295754..2a320df 100644
--- a/src/core/pattern.js
+++ b/src/core/pattern.js
@@ -195,13 +195,13 @@ Shadings.RadialAxial = (function RadialAxialClosure() {
       var coordsArr = this.coordsArr;
       var shadingType = this.shadingType;
       var type, p0, p1, r0, r1;
-      if (shadingType == PatternType.AXIAL) {
+      if (shadingType === PatternType.AXIAL) {
         p0 = [coordsArr[0], coordsArr[1]];
         p1 = [coordsArr[2], coordsArr[3]];
         r0 = null;
         r1 = null;
         type = 'axial';
-      } else if (shadingType == PatternType.RADIAL) {
+      } else if (shadingType === PatternType.RADIAL) {
         p0 = [coordsArr[0], coordsArr[1]];
         p1 = [coordsArr[3], coordsArr[4]];
         r0 = coordsArr[2];

-- 
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