[Pkg-javascript-commits] [pdf.js] 80/246: Use strict equalities in web/compatibility.js

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:27 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 097bf41285f69b6558f3104b2c0f73b393e6b344
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Thu Jul 31 22:02:56 2014 +0200

    Use strict equalities in web/compatibility.js
---
 web/compatibility.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/web/compatibility.js b/web/compatibility.js
index a21bf6a..6d57b92 100644
--- a/web/compatibility.js
+++ b/web/compatibility.js
@@ -237,7 +237,7 @@ if (typeof PDFJS === 'undefined') {
     'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
   window.atob = function (input) {
     input = input.replace(/=+$/, '');
-    if (input.length % 4 == 1) {
+    if (input.length % 4 === 1) {
       throw new Error('bad atob input');
     }
     for (
@@ -293,7 +293,7 @@ if (typeof PDFJS === 'undefined') {
       var dataset = {};
       for (var j = 0, jj = this.attributes.length; j < jj; j++) {
         var attribute = this.attributes[j];
-        if (attribute.name.substring(0, 5) != 'data-') {
+        if (attribute.name.substring(0, 5) !== 'data-') {
           continue;
         }
         var key = attribute.name.substring(5).replace(/\-([a-z])/g,
@@ -416,7 +416,7 @@ if (typeof PDFJS === 'undefined') {
   function isDisabled(node) {
     return node.disabled || (node.parentNode && isDisabled(node.parentNode));
   }
-  if (navigator.userAgent.indexOf('Opera') != -1) {
+  if (navigator.userAgent.indexOf('Opera') !== -1) {
     // use browser detection since we cannot feature-check this bug
     document.addEventListener('click', ignoreIfTargetDisabled, true);
   }

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