[Pkg-javascript-commits] [pdf.js] 03/246: Enforcing JSHint's undef option

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:19 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 7586d777eb2cdea5153de54174361508343be74f
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Sat Jul 19 16:41:07 2014 +0200

    Enforcing JSHint's undef option
---
 .jshintrc                 | 1 +
 src/pdf.js                | 1 +
 test/unit/testreporter.js | 6 +++---
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.jshintrc b/.jshintrc
index 3ab350f..d08a6e3 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -9,6 +9,7 @@
   "quotmark": "single",
   "trailing": true,
   "curly": true,
+  "undef": true,
 
   // Relaxing
   "boss": true,
diff --git a/src/pdf.js b/src/pdf.js
index a16d2fa..694891c 100644
--- a/src/pdf.js
+++ b/src/pdf.js
@@ -15,6 +15,7 @@
  * limitations under the License.
  */
 /*jshint globalstrict: false */
+/* globals PDFJS */
 
 // Initializing PDFJS global object (if still undefined)
 if (typeof PDFJS === 'undefined') {
diff --git a/test/unit/testreporter.js b/test/unit/testreporter.js
index d017ef5..98a49f5 100644
--- a/test/unit/testreporter.js
+++ b/test/unit/testreporter.js
@@ -1,10 +1,10 @@
 /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
-/*jshint globalstrict: false */
+/* globals SpecialPowers */
 
-var TestReporter = function(browser, appPath) {
-  'use strict';
+'use strict';
 
+var TestReporter = function(browser, appPath) {
   function send(action, json, cb) {
     var r = new XMLHttpRequest();
     // (The POST URI is ignored atm.)

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