From 3a8aad0f36a2e7639f5dabd6dbac392ef0e234c1 Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Tue, 25 Oct 2011 10:43:28 -0700 Subject: [PATCH] Linting --- Makefile | 4 ++-- src/pdf.js | 6 +++--- src/worker.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index dda2a5e17..5ee707a0a 100644 --- a/Makefile +++ b/Makefile @@ -113,11 +113,11 @@ browser-test: # To install gjslint, see: # # -SRC_DIRS := . utils web test examples/helloworld extensions/firefox \ +SRC_DIRS := . src utils web test examples/helloworld extensions/firefox \ extensions/firefox/components GJSLINT_FILES = $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.js)) lint: - gjslint $(GJSLINT_FILES) + gjslint --nojsdoc $(GJSLINT_FILES) # make web # diff --git a/src/pdf.js b/src/pdf.js index cdbe64f94..121564af4 100644 --- a/src/pdf.js +++ b/src/pdf.js @@ -3,7 +3,7 @@ var PDF = {}; -(function(globalScope){ +(function(globalScope) { // Use strict in our context only - users might not want it 'use strict'; @@ -11,7 +11,7 @@ var PDF = {}; var useWorker = false; var console; - // Files are inserted below - see Makefile + // Files are inserted below - see Makefile /* INSERT_POINT */ // Worker-specific @@ -20,7 +20,7 @@ var PDF = {}; } else { var consoleTimer = {}; console = workerConsole; - + // Listen for messages from the main thread. var handler = new MessageHandler('worker_processor', globalScope); WorkerProcessorHandler.setup(handler); diff --git a/src/worker.js b/src/worker.js index d8c8d59ab..0242cc929 100644 --- a/src/worker.js +++ b/src/worker.js @@ -169,4 +169,4 @@ var workerConsole = { } this.log('Timer:', name, Date.now() - time); } -}; +};