1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-30 15:13:00 +00:00

JSHint obeisance

This commit is contained in:
Jeremy Ruston
2012-11-15 12:38:25 +00:00
parent 752a05d52f
commit 1e51f56754
3 changed files with 2 additions and 2 deletions

View File

@@ -591,6 +591,7 @@ if($tw.browser) {
Execute the module named 'moduleName'. The name can optionally be relative to the module named 'moduleRoot' Execute the module named 'moduleName'. The name can optionally be relative to the module named 'moduleRoot'
*/ */
$tw.modules.execute = function(moduleName,moduleRoot) { $tw.modules.execute = function(moduleName,moduleRoot) {
/*jslint evil: true */
var name = moduleRoot ? $tw.utils.resolvePath(moduleName,moduleRoot) : moduleName, var name = moduleRoot ? $tw.utils.resolvePath(moduleName,moduleRoot) : moduleName,
require = function(modRequire) { require = function(modRequire) {
return $tw.modules.execute(modRequire,name); return $tw.modules.execute(modRequire,name);

View File

@@ -45,7 +45,6 @@ Define a JavaScript tiddler module for later execution
definition: module definition; see discussion above definition: module definition; see discussion above
*/ */
$tw.modules.define = function(moduleName,moduleType,definition) { $tw.modules.define = function(moduleName,moduleType,definition) {
/*jslint evil: true */
// Create the moduleInfo // Create the moduleInfo
var moduleInfo = { var moduleInfo = {
moduleType: moduleType, moduleType: moduleType,

View File

@@ -40,7 +40,7 @@ exports["application/x-tiddler"] = function(tiddlers) {
return mapEachTiddler(this,tiddlers,function(tiddler) { return mapEachTiddler(this,tiddlers,function(tiddler) {
return tiddler.getFieldStringBlock({exclude: ["text"]}) + "\n\n" + tiddler.fields.text; return tiddler.getFieldStringBlock({exclude: ["text"]}) + "\n\n" + tiddler.fields.text;
}); });
} };
exports["application/x-tiddler-css"] = function(tiddlers) { exports["application/x-tiddler-css"] = function(tiddlers) {
return mapEachTiddler(this,tiddlers,function(tiddler) { return mapEachTiddler(this,tiddlers,function(tiddler) {