1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

A bunch of changes to keep JSHint happy

This commit is contained in:
Jeremy Ruston 2011-12-01 10:30:17 +00:00
parent 3f5912949f
commit f10cdecb3d
10 changed files with 12 additions and 2 deletions

View File

@ -2,6 +2,7 @@
//
// Usage: node cook.js <recipefile>
/*global require: false, exports: false */
"use strict";
var TiddlyWiki = require("./js/TiddlyWiki.js").TiddlyWiki,

View File

@ -17,6 +17,7 @@ Options and their defaults are:
*/
/*global require: false, exports: false */
"use strict";
var ArgParser = function(argString,options) {

View File

@ -3,6 +3,7 @@ FileRetriever can asynchronously retrieve files from HTTP URLs or the local file
throttling so that we don't get error EMFILE "Too many open files".
*/
/*global require: false, exports: false */
"use strict";
var fs = require("fs"),

View File

@ -27,6 +27,7 @@ this.ingredients = {
*/
/*global require: false, exports: false, process: false */
"use strict";
var Tiddler = require("./Tiddler.js").Tiddler,

View File

@ -19,6 +19,7 @@ as a TiddlyWiki quoted string (eg, "one [[two three]]").
*/
/*global require: false, exports: false */
"use strict";
var utils = require("./Utils.js"),

View File

@ -2,6 +2,7 @@
Functions concerned with parsing representations of tiddlers
*/
/*global require: false, exports: false */
"use strict";
var utils = require("./Utils.js"),

View File

@ -2,6 +2,7 @@
Functions concerned with parsing representations of tiddlers
*/
/*global require: false, exports: false */
"use strict";
var utils = require("./Utils.js");

View File

@ -1,3 +1,4 @@
/*global require: false, exports: false */
"use strict";
var Tiddler = require("./Tiddler.js").Tiddler;

View File

@ -2,6 +2,7 @@
Functions concerned with parsing TiddlyWiki files
*/
/*global require: false, exports: false */
"use strict";
var tiddlerInput = require("./TiddlerInput.js"),

View File

@ -4,6 +4,7 @@ Various static utility functions.
This file is a bit of a dumping ground; the expectation is that most of these functions will be refactored.
*/
/*global require: false, exports: false, process: false */
"use strict";
var utils = exports;
@ -67,12 +68,12 @@ utils.htmlDecode = function(s)
// Adapted from async.js, https://github.com/caolan/async
// Creates a queue of tasks for an asyncronous worker function with a specified maximum number of concurrent operations.
// q = utils.queue(function(taskData,callback) {
// q = utils.queue(function(taskData,callback) {
// fs.readFile(taskData.filename,"uft8",function(err,data) {
// callback(err,data);
// });
// });
// q.push(taskData,callback) is used to queue a new task
// q.push(taskData,callback) is used to queue a new task
utils.queue = function(worker, concurrency) {
var workers = 0;
var q = {