Linting
This commit is contained in:
parent
6a2872912a
commit
3a8aad0f36
4
Makefile
4
Makefile
@ -113,11 +113,11 @@ browser-test:
|
|||||||
# To install gjslint, see:
|
# To install gjslint, see:
|
||||||
#
|
#
|
||||||
# <http://code.google.com/closure/utilities/docs/linter_howto.html>
|
# <http://code.google.com/closure/utilities/docs/linter_howto.html>
|
||||||
SRC_DIRS := . utils web test examples/helloworld extensions/firefox \
|
SRC_DIRS := . src utils web test examples/helloworld extensions/firefox \
|
||||||
extensions/firefox/components
|
extensions/firefox/components
|
||||||
GJSLINT_FILES = $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.js))
|
GJSLINT_FILES = $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.js))
|
||||||
lint:
|
lint:
|
||||||
gjslint $(GJSLINT_FILES)
|
gjslint --nojsdoc $(GJSLINT_FILES)
|
||||||
|
|
||||||
# make web
|
# make web
|
||||||
#
|
#
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
var PDF = {};
|
var PDF = {};
|
||||||
|
|
||||||
(function(globalScope){
|
(function(globalScope) {
|
||||||
// Use strict in our context only - users might not want it
|
// Use strict in our context only - users might not want it
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ var PDF = {};
|
|||||||
var useWorker = false;
|
var useWorker = false;
|
||||||
var console;
|
var console;
|
||||||
|
|
||||||
// Files are inserted below - see Makefile
|
// Files are inserted below - see Makefile
|
||||||
/* INSERT_POINT */
|
/* INSERT_POINT */
|
||||||
|
|
||||||
// Worker-specific
|
// Worker-specific
|
||||||
@ -20,7 +20,7 @@ var PDF = {};
|
|||||||
} else {
|
} else {
|
||||||
var consoleTimer = {};
|
var consoleTimer = {};
|
||||||
console = workerConsole;
|
console = workerConsole;
|
||||||
|
|
||||||
// Listen for messages from the main thread.
|
// Listen for messages from the main thread.
|
||||||
var handler = new MessageHandler('worker_processor', globalScope);
|
var handler = new MessageHandler('worker_processor', globalScope);
|
||||||
WorkerProcessorHandler.setup(handler);
|
WorkerProcessorHandler.setup(handler);
|
||||||
|
@ -169,4 +169,4 @@ var workerConsole = {
|
|||||||
}
|
}
|
||||||
this.log('Timer:', name, Date.now() - time);
|
this.log('Timer:', name, Date.now() - time);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user