From 7586d777eb2cdea5153de54174361508343be74f Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sat, 19 Jul 2014 16:41:07 +0200 Subject: [PATCH] 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 3ab350f54..d08a6e320 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 a16d2fa0d..694891ca3 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 d017ef5c5..98a49f5df 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 */ + +'use strict'; var TestReporter = function(browser, appPath) { - 'use strict'; - function send(action, json, cb) { var r = new XMLHttpRequest(); // (The POST URI is ignored atm.)