From be129c0956cec45a527de1842b1bf03d8c9c250c Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Sun, 16 Mar 2025 13:21:20 +0800 Subject: [PATCH] Remove function wrapper for all plugins --- plugins/tiddlywiki/bibtex/deserializer.js | 3 --- plugins/tiddlywiki/browser-sniff/browser.js | 3 --- plugins/tiddlywiki/browser-storage/rawmarkup.js | 4 ---- plugins/tiddlywiki/browser-storage/startup.js | 3 --- plugins/tiddlywiki/browser-storage/util.js | 4 ---- plugins/tiddlywiki/classictools/modules/recipe.js | 3 --- plugins/tiddlywiki/codemirror/edit-codemirror.js | 3 --- plugins/tiddlywiki/codemirror/engine.js | 3 --- plugins/tiddlywiki/confetti/confetti-manager.js | 3 --- plugins/tiddlywiki/confetti/confetti-widget.js | 3 --- plugins/tiddlywiki/confetti/startup.js | 3 --- plugins/tiddlywiki/consent-banner/raw-widget.js | 3 --- plugins/tiddlywiki/consent-banner/startup.js | 3 --- plugins/tiddlywiki/dynannotate/modules/dynannotate.js | 3 --- plugins/tiddlywiki/dynannotate/modules/element-spotlight.js | 3 --- .../dynannotate/modules/legacy-selection-tracker.js | 3 --- plugins/tiddlywiki/dynannotate/modules/selection-tracker.js | 3 --- plugins/tiddlywiki/dynannotate/modules/startup.js | 3 --- plugins/tiddlywiki/dynannotate/modules/textmap.js | 3 --- plugins/tiddlywiki/dynaview/dynaview.js | 3 --- plugins/tiddlywiki/evernote/modules/enex-deserializer.js | 4 ---- plugins/tiddlywiki/external-attachments/startup.js | 4 ---- plugins/tiddlywiki/filesystem/filesystemadaptor.js | 3 --- plugins/tiddlywiki/freelinks/plain-text.js | 3 --- plugins/tiddlywiki/freelinks/text.js | 3 --- plugins/tiddlywiki/geospatial/geotools.js | 3 --- plugins/tiddlywiki/geospatial/operators/helper.js | 3 --- plugins/tiddlywiki/geospatial/operators/lookup.js | 3 --- plugins/tiddlywiki/geospatial/operators/measurement.js | 3 --- plugins/tiddlywiki/geospatial/operators/olc.js | 3 --- plugins/tiddlywiki/geospatial/operators/transformation.js | 4 ---- plugins/tiddlywiki/geospatial/startup.js | 3 --- plugins/tiddlywiki/geospatial/widgets/geobaselayer.js | 3 --- plugins/tiddlywiki/geospatial/widgets/geolayer.js | 3 --- plugins/tiddlywiki/geospatial/widgets/geomap.js | 4 ---- plugins/tiddlywiki/googleanalytics/googleanalytics.js | 5 ----- plugins/tiddlywiki/highlight/highlightblock.js | 3 --- plugins/tiddlywiki/innerwiki/anchor.js | 3 --- plugins/tiddlywiki/innerwiki/innerwiki.js | 3 --- plugins/tiddlywiki/innerwiki/screenshot.js | 3 --- plugins/tiddlywiki/jasmine/jasmine-plugin.js | 3 --- plugins/tiddlywiki/jasmine/run-wiki-based-tests.js | 3 --- plugins/tiddlywiki/jasmine/startup.js | 3 --- plugins/tiddlywiki/jszip/startup.js | 3 --- plugins/tiddlywiki/katex/latex-parser.js | 3 --- plugins/tiddlywiki/katex/wrapper.js | 4 ---- plugins/tiddlywiki/markdown/markdown-it-katex.js | 4 +--- plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js | 3 --- plugins/tiddlywiki/markdown/wrapper.js | 2 -- plugins/tiddlywiki/pluginlibrary/libraryserver.js | 3 --- plugins/tiddlywiki/qrcode/barcodereader.js | 3 --- plugins/tiddlywiki/qrcode/makeqr.js | 4 ---- plugins/tiddlywiki/railroad/components.js | 5 +---- plugins/tiddlywiki/railroad/parser.js | 5 +---- plugins/tiddlywiki/railroad/typed-parser.js | 4 ---- plugins/tiddlywiki/railroad/wrapper.js | 5 +---- plugins/tiddlywiki/savetrail/savetrail.js | 3 --- plugins/tiddlywiki/share/rawmarkup.js | 3 --- plugins/tiddlywiki/stacked-view/stacked.js | 5 +---- .../tiddlywiki/text-slicer/modules/filters/list-children.js | 3 --- plugins/tiddlywiki/text-slicer/modules/slicer.js | 3 --- .../tiddlywiki/text-slicer/modules/startup/slicer-startup.js | 3 --- plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js | 3 --- plugins/tiddlywiki/tw2parser/classictransclude.js | 3 --- plugins/tiddlywiki/tw2parser/entry.js | 2 -- plugins/tiddlywiki/tw2parser/parameteradapter.js | 2 -- plugins/tiddlywiki/tw2parser/wikitextparser.js | 3 --- plugins/tiddlywiki/tw2parser/wikitextrules.js | 3 --- plugins/tiddlywiki/twitter-archivist/archivist.js | 3 --- plugins/tiddlywiki/twitter-archivist/loadtwitterarchive.js | 3 --- plugins/tiddlywiki/twitter-archivist/startup.js | 3 --- plugins/tiddlywiki/upgrade/config.js | 3 --- plugins/tiddlywiki/xlsx-utils/deserializer.js | 3 --- plugins/tiddlywiki/xlsx-utils/importer.js | 3 --- plugins/tiddlywiki/xlsx-utils/startup.js | 3 --- plugins/tiddlywiki/xlsx-utils/xlsx-import-command.js | 3 --- 76 files changed, 5 insertions(+), 240 deletions(-) diff --git a/plugins/tiddlywiki/bibtex/deserializer.js b/plugins/tiddlywiki/bibtex/deserializer.js index 9a87e82fb..e5a6dab6e 100644 --- a/plugins/tiddlywiki/bibtex/deserializer.js +++ b/plugins/tiddlywiki/bibtex/deserializer.js @@ -6,7 +6,6 @@ module-type: tiddlerdeserializer BibTeX file deserializer \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -46,5 +45,3 @@ exports["application/x-bibtex"] = function(text,fields) { // Return the output tiddlers return results; }; - -})(); diff --git a/plugins/tiddlywiki/browser-sniff/browser.js b/plugins/tiddlywiki/browser-sniff/browser.js index 26989623a..bd44897a7 100644 --- a/plugins/tiddlywiki/browser-sniff/browser.js +++ b/plugins/tiddlywiki/browser-sniff/browser.js @@ -6,7 +6,6 @@ module-type: info Initialise $:/info/browser tiddlers \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -78,5 +77,3 @@ exports.getInfoTiddlerFields = function() { } return infoTiddlerFields; }; - -})(); diff --git a/plugins/tiddlywiki/browser-storage/rawmarkup.js b/plugins/tiddlywiki/browser-storage/rawmarkup.js index bf7c41e0a..d94d9d236 100644 --- a/plugins/tiddlywiki/browser-storage/rawmarkup.js +++ b/plugins/tiddlywiki/browser-storage/rawmarkup.js @@ -7,8 +7,6 @@ Startup code injected as raw markup \*/ -(function() { - // Need to initialise these because we run before bootprefix.js and boot.js $tw = window.$tw || Object.create(null); $tw.hooks = $tw.hooks || { names: {}}; @@ -89,5 +87,3 @@ function hookBootTiddlersLoaded() { text: $tw.utils.stringifyList(log) }); } - -})(); diff --git a/plugins/tiddlywiki/browser-storage/startup.js b/plugins/tiddlywiki/browser-storage/startup.js index 2d7287971..33a13b94c 100644 --- a/plugins/tiddlywiki/browser-storage/startup.js +++ b/plugins/tiddlywiki/browser-storage/startup.js @@ -6,7 +6,6 @@ module-type: startup Startup initialisation \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -135,5 +134,3 @@ exports.startup = function() { }); }); }; - -})(); diff --git a/plugins/tiddlywiki/browser-storage/util.js b/plugins/tiddlywiki/browser-storage/util.js index 0f55ada7d..25379d248 100644 --- a/plugins/tiddlywiki/browser-storage/util.js +++ b/plugins/tiddlywiki/browser-storage/util.js @@ -7,8 +7,6 @@ Utility methods for browser-storage plugin \*/ -(function(){ - /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; @@ -109,5 +107,3 @@ BrowserStorageUtil.prototype.clearLocalStorage = function() { }; exports.BrowserStorageUtil = BrowserStorageUtil; - -})(); diff --git a/plugins/tiddlywiki/classictools/modules/recipe.js b/plugins/tiddlywiki/classictools/modules/recipe.js index aa5362887..088a87229 100644 --- a/plugins/tiddlywiki/classictools/modules/recipe.js +++ b/plugins/tiddlywiki/classictools/modules/recipe.js @@ -8,7 +8,6 @@ Module to deserialize tiddlers from an old school TiddlyWiki recipe file. The idea is to process the recipe file recursively, loading tiddlers into the main store using synchronous file operations. The tiddlers have their titles prefixed with the associated marker in curly brackets ("{shadow}", "{tiddler}" etc). \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -80,5 +79,3 @@ exports["text/vnd.tiddlywiki2-recipe"] = function(text,fields) { }); return tiddlers; }; - -})(); diff --git a/plugins/tiddlywiki/codemirror/edit-codemirror.js b/plugins/tiddlywiki/codemirror/edit-codemirror.js index a8e79928d..bad2f1fcf 100755 --- a/plugins/tiddlywiki/codemirror/edit-codemirror.js +++ b/plugins/tiddlywiki/codemirror/edit-codemirror.js @@ -6,7 +6,6 @@ module-type: widget Edit-codemirror widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -16,5 +15,3 @@ var editTextWidgetFactory = require("$:/core/modules/editor/factory.js").editTex CodeMirrorEngine = require("$:/plugins/tiddlywiki/codemirror/engine.js").CodeMirrorEngine; exports["edit-codemirror"] = editTextWidgetFactory(CodeMirrorEngine,CodeMirrorEngine); - -})(); diff --git a/plugins/tiddlywiki/codemirror/engine.js b/plugins/tiddlywiki/codemirror/engine.js index d994344fc..f85d8bd00 100755 --- a/plugins/tiddlywiki/codemirror/engine.js +++ b/plugins/tiddlywiki/codemirror/engine.js @@ -6,7 +6,6 @@ module-type: library Text editor engine based on a CodeMirror instance \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -316,5 +315,3 @@ CodeMirrorEngine.prototype.executeTextOperation = function(operation) { }; exports.CodeMirrorEngine = $tw.browser ? CodeMirrorEngine : require("$:/core/modules/editor/engines/simple.js").SimpleEngine; - -})(); diff --git a/plugins/tiddlywiki/confetti/confetti-manager.js b/plugins/tiddlywiki/confetti/confetti-manager.js index 0ddd6139f..304fa78d4 100644 --- a/plugins/tiddlywiki/confetti/confetti-manager.js +++ b/plugins/tiddlywiki/confetti/confetti-manager.js @@ -6,7 +6,6 @@ module-type: global Confetti manager \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -52,5 +51,3 @@ ConfettiManager.prototype.reset = function () { }; exports.ConfettiManager = ConfettiManager; - -})(); diff --git a/plugins/tiddlywiki/confetti/confetti-widget.js b/plugins/tiddlywiki/confetti/confetti-widget.js index 6c78f7066..2f3f86d81 100644 --- a/plugins/tiddlywiki/confetti/confetti-widget.js +++ b/plugins/tiddlywiki/confetti/confetti-widget.js @@ -6,7 +6,6 @@ module-type: widget Confetti widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -63,5 +62,3 @@ ConfettiWidget.prototype.refresh = function(changedTiddlers) { }; exports.confetti = ConfettiWidget; - -})(); diff --git a/plugins/tiddlywiki/confetti/startup.js b/plugins/tiddlywiki/confetti/startup.js index 6634cbbca..d043f90e1 100644 --- a/plugins/tiddlywiki/confetti/startup.js +++ b/plugins/tiddlywiki/confetti/startup.js @@ -6,7 +6,6 @@ module-type: startup Setup the root widget event handlers \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -59,5 +58,3 @@ exports.startup = function() { $tw.confettiManager.reset(); }); }; - -})(); diff --git a/plugins/tiddlywiki/consent-banner/raw-widget.js b/plugins/tiddlywiki/consent-banner/raw-widget.js index a38deee39..8e29afbc4 100644 --- a/plugins/tiddlywiki/consent-banner/raw-widget.js +++ b/plugins/tiddlywiki/consent-banner/raw-widget.js @@ -6,7 +6,6 @@ module-type: widget An override of the raw widget that blocks raw content until the user has consented to accept cookies \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -65,5 +64,3 @@ RawWidget.prototype.refresh = function(changedTiddlers) { }; exports.raw = RawWidget; - -})(); diff --git a/plugins/tiddlywiki/consent-banner/startup.js b/plugins/tiddlywiki/consent-banner/startup.js index 861a03a91..f691b5885 100644 --- a/plugins/tiddlywiki/consent-banner/startup.js +++ b/plugins/tiddlywiki/consent-banner/startup.js @@ -6,7 +6,6 @@ module-type: startup Startup initialisation \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -103,5 +102,3 @@ exports.startup = function() { }); } }; - -})(); diff --git a/plugins/tiddlywiki/dynannotate/modules/dynannotate.js b/plugins/tiddlywiki/dynannotate/modules/dynannotate.js index 4e4d0ef31..e6e9f3bd0 100644 --- a/plugins/tiddlywiki/dynannotate/modules/dynannotate.js +++ b/plugins/tiddlywiki/dynannotate/modules/dynannotate.js @@ -6,7 +6,6 @@ module-type: widget Dynannotate widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -433,5 +432,3 @@ DynannotateWidget.prototype.refresh = function(changedTiddlers) { }; exports.dynannotate = DynannotateWidget; - -})(); diff --git a/plugins/tiddlywiki/dynannotate/modules/element-spotlight.js b/plugins/tiddlywiki/dynannotate/modules/element-spotlight.js index 7b581e28d..985a8493d 100644 --- a/plugins/tiddlywiki/dynannotate/modules/element-spotlight.js +++ b/plugins/tiddlywiki/dynannotate/modules/element-spotlight.js @@ -6,7 +6,6 @@ module-type: library Manages the element spotlight effect \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -132,5 +131,3 @@ ElementSpotlight.prototype.shineSpotlight = function(selectors) { }; exports.ElementSpotlight = ElementSpotlight; - -})(); diff --git a/plugins/tiddlywiki/dynannotate/modules/legacy-selection-tracker.js b/plugins/tiddlywiki/dynannotate/modules/legacy-selection-tracker.js index f282601f8..30d1368a0 100644 --- a/plugins/tiddlywiki/dynannotate/modules/legacy-selection-tracker.js +++ b/plugins/tiddlywiki/dynannotate/modules/legacy-selection-tracker.js @@ -6,7 +6,6 @@ module-type: library Legacy version of the dyannotate background daemon to track the selection \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -100,5 +99,3 @@ LegacySelectionTracker.prototype.findSelectionContainer = function findSelection }; exports.LegacySelectionTracker = LegacySelectionTracker; - -})(); diff --git a/plugins/tiddlywiki/dynannotate/modules/selection-tracker.js b/plugins/tiddlywiki/dynannotate/modules/selection-tracker.js index 6b74d0c4b..6510d385e 100644 --- a/plugins/tiddlywiki/dynannotate/modules/selection-tracker.js +++ b/plugins/tiddlywiki/dynannotate/modules/selection-tracker.js @@ -6,7 +6,6 @@ module-type: library Background daemon to track the selection \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -167,5 +166,3 @@ SelectionTracker.prototype.performSelectionActions = function(chunks,variables,a }; exports.SelectionTracker = SelectionTracker; - -})(); diff --git a/plugins/tiddlywiki/dynannotate/modules/startup.js b/plugins/tiddlywiki/dynannotate/modules/startup.js index 4324c5893..1c43bbcb2 100644 --- a/plugins/tiddlywiki/dynannotate/modules/startup.js +++ b/plugins/tiddlywiki/dynannotate/modules/startup.js @@ -8,7 +8,6 @@ module-type: startup Startup the dyannotate background daemon to track the selection \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -58,6 +57,4 @@ exports.startup = function() { $tw.dynannotate.elementSpotlight.shineSpotlight(selectors); }); }; - -})(); \ No newline at end of file diff --git a/plugins/tiddlywiki/dynannotate/modules/textmap.js b/plugins/tiddlywiki/dynannotate/modules/textmap.js index 934ceb0ff..0480739ea 100644 --- a/plugins/tiddlywiki/dynannotate/modules/textmap.js +++ b/plugins/tiddlywiki/dynannotate/modules/textmap.js @@ -6,7 +6,6 @@ module-type: library Structure for modelling mapping between a string and its representation in the DOM \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -178,5 +177,3 @@ exports.TextMap.prototype.extractContext = function(startContainer,startOffset,t suffix: this.string.slice(startPos + text.length, Math.min(startPos + text.length + PREFIX_SUFFIX_LENGTH, this.string.length)) }; }; - -})(); diff --git a/plugins/tiddlywiki/dynaview/dynaview.js b/plugins/tiddlywiki/dynaview/dynaview.js index 271a41985..d2ae414f6 100644 --- a/plugins/tiddlywiki/dynaview/dynaview.js +++ b/plugins/tiddlywiki/dynaview/dynaview.js @@ -6,7 +6,6 @@ module-type: startup Zoom everything \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -263,5 +262,3 @@ function saveViewportDimensions() { } } } - -})(); diff --git a/plugins/tiddlywiki/evernote/modules/enex-deserializer.js b/plugins/tiddlywiki/evernote/modules/enex-deserializer.js index 0e195b5ea..f7f83acca 100644 --- a/plugins/tiddlywiki/evernote/modules/enex-deserializer.js +++ b/plugins/tiddlywiki/evernote/modules/enex-deserializer.js @@ -8,7 +8,6 @@ ENEX file deserializer For details see: https://blog.evernote.com/tech/2013/08/08/evernote-export-format-enex/ \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -134,6 +133,3 @@ function fixAttachmentReference(contentNode, md5Hash, mimeType, name) { mediaNode.parentNode.replaceChild($tw.utils.domMaker("p", {text: "[["+ name + "]]"}), mediaNode); } } - - -})(); diff --git a/plugins/tiddlywiki/external-attachments/startup.js b/plugins/tiddlywiki/external-attachments/startup.js index 9478c6e2a..d82faeace 100644 --- a/plugins/tiddlywiki/external-attachments/startup.js +++ b/plugins/tiddlywiki/external-attachments/startup.js @@ -6,7 +6,6 @@ module-type: startup Startup initialisation \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -123,6 +122,3 @@ function test_makePathRelative() { test("\\\\SHARE\\Users\\me\\something\\file.png","/SHARE/Users/me/somethingelse/index.html","../something/file.png",{isWindows: true}); test("\\\\SHARE\\Users\\me\\something\\file.png","/C:/Users/me/something/index.html","/SHARE/Users/me/something/file.png",{isWindows: true}); } - - -})(); diff --git a/plugins/tiddlywiki/filesystem/filesystemadaptor.js b/plugins/tiddlywiki/filesystem/filesystemadaptor.js index 451928101..f6fa9d0e4 100644 --- a/plugins/tiddlywiki/filesystem/filesystemadaptor.js +++ b/plugins/tiddlywiki/filesystem/filesystemadaptor.js @@ -6,7 +6,6 @@ module-type: syncadaptor A sync adaptor module for synchronising with the local filesystem via node.js APIs \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -167,5 +166,3 @@ FileSystemAdaptor.prototype.removeTiddlerFileInfo = function(title) { if(fs) { exports.adaptorClass = FileSystemAdaptor; } - -})(); diff --git a/plugins/tiddlywiki/freelinks/plain-text.js b/plugins/tiddlywiki/freelinks/plain-text.js index 2e7e0d707..7f56f03ee 100644 --- a/plugins/tiddlywiki/freelinks/plain-text.js +++ b/plugins/tiddlywiki/freelinks/plain-text.js @@ -6,7 +6,6 @@ module-type: widget A copy of the core text widget under a different name \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -58,5 +57,3 @@ PlainTextNodeWidget.prototype.refresh = function(changedTiddlers) { }; exports["plain-text"] = PlainTextNodeWidget; - -})(); diff --git a/plugins/tiddlywiki/freelinks/text.js b/plugins/tiddlywiki/freelinks/text.js index 2b3370ebd..05255d0f5 100755 --- a/plugins/tiddlywiki/freelinks/text.js +++ b/plugins/tiddlywiki/freelinks/text.js @@ -6,7 +6,6 @@ module-type: widget An override of the core text widget that automatically linkifies the text \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -164,5 +163,3 @@ TextNodeWidget.prototype.refresh = function(changedTiddlers) { }; exports.text = TextNodeWidget; - -})(); diff --git a/plugins/tiddlywiki/geospatial/geotools.js b/plugins/tiddlywiki/geospatial/geotools.js index 38df56a52..26eea5365 100644 --- a/plugins/tiddlywiki/geospatial/geotools.js +++ b/plugins/tiddlywiki/geospatial/geotools.js @@ -6,7 +6,6 @@ module-type: library Geospatial utilities \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -37,5 +36,3 @@ exports.parsePoint = function(str) { // Return the string now we know it is a valid GeoJSON Point return json; } - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/helper.js b/plugins/tiddlywiki/geospatial/operators/helper.js index 164b1dc86..d4b23a929 100644 --- a/plugins/tiddlywiki/geospatial/operators/helper.js +++ b/plugins/tiddlywiki/geospatial/operators/helper.js @@ -6,7 +6,6 @@ module-type: filteroperator Filter operators for geospatial helpers \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -20,5 +19,3 @@ exports.geopoint = function(source,operator,options) { alt = $tw.utils.parseNumber(operator.operands[2] || "0"); return [JSON.stringify(turf.point([long,lat,alt]))]; }; - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/lookup.js b/plugins/tiddlywiki/geospatial/operators/lookup.js index 59ca131e7..ef826682b 100644 --- a/plugins/tiddlywiki/geospatial/operators/lookup.js +++ b/plugins/tiddlywiki/geospatial/operators/lookup.js @@ -6,7 +6,6 @@ module-type: filteroperator Filter operators for geospatial lookup \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -41,5 +40,3 @@ function getPolygonsContainingPoint(featureCollection,point) { }); return properties; } - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/measurement.js b/plugins/tiddlywiki/geospatial/operators/measurement.js index 51c46b654..8ab4f2639 100644 --- a/plugins/tiddlywiki/geospatial/operators/measurement.js +++ b/plugins/tiddlywiki/geospatial/operators/measurement.js @@ -6,7 +6,6 @@ module-type: filteroperator Filter operators for geospatial measurement \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -50,5 +49,3 @@ exports.geonearestpoint = function(source,operator,options) { return []; } }; - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/olc.js b/plugins/tiddlywiki/geospatial/operators/olc.js index ee8c34fa5..719fc38e8 100644 --- a/plugins/tiddlywiki/geospatial/operators/olc.js +++ b/plugins/tiddlywiki/geospatial/operators/olc.js @@ -6,7 +6,6 @@ module-type: filteroperator Filter operators for open location code conversions \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -51,5 +50,3 @@ exports["olc-encode"] = function(source,operator,options) { } return [olc]; }; - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/transformation.js b/plugins/tiddlywiki/geospatial/operators/transformation.js index 2947780c5..b91ff1de7 100644 --- a/plugins/tiddlywiki/geospatial/operators/transformation.js +++ b/plugins/tiddlywiki/geospatial/operators/transformation.js @@ -6,7 +6,6 @@ module-type: filteroperator Filter operators for geospatial transformation \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -83,6 +82,3 @@ function geojsonOp(geojsonObjects, op) { }); return turf.featureCollection(resultFeatures); } - - -})(); diff --git a/plugins/tiddlywiki/geospatial/startup.js b/plugins/tiddlywiki/geospatial/startup.js index 1b76e9949..13b18aff3 100644 --- a/plugins/tiddlywiki/geospatial/startup.js +++ b/plugins/tiddlywiki/geospatial/startup.js @@ -6,7 +6,6 @@ module-type: startup Geospatial initialisation \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -74,5 +73,3 @@ exports.startup = function() { } }); }; - -})(); diff --git a/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js b/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js index 09920219b..e96b1fbdc 100644 --- a/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js +++ b/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js @@ -6,12 +6,9 @@ module-type: widget geobaselayer widget to represent a base layer for a geomap widget. Clone of the data widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; exports.geobaselayer = require("$:/core/modules/widgets/data.js").data; - -})(); diff --git a/plugins/tiddlywiki/geospatial/widgets/geolayer.js b/plugins/tiddlywiki/geospatial/widgets/geolayer.js index b39cd402e..c4bc4e08c 100644 --- a/plugins/tiddlywiki/geospatial/widgets/geolayer.js +++ b/plugins/tiddlywiki/geospatial/widgets/geolayer.js @@ -6,12 +6,9 @@ module-type: widget geolayer widget to represent a layer for a geomap widget. Clone of the data widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; exports.geolayer = require("$:/core/modules/widgets/data.js").data; - -})(); diff --git a/plugins/tiddlywiki/geospatial/widgets/geomap.js b/plugins/tiddlywiki/geospatial/widgets/geomap.js index f3cad0377..8cf1e8543 100644 --- a/plugins/tiddlywiki/geospatial/widgets/geomap.js +++ b/plugins/tiddlywiki/geospatial/widgets/geomap.js @@ -6,7 +6,6 @@ module-type: widget Leaflet map widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -351,6 +350,3 @@ GeomapWidget.prototype.refresh = function(changedTiddlers) { }; exports.geomap = GeomapWidget; - -})(); - diff --git a/plugins/tiddlywiki/googleanalytics/googleanalytics.js b/plugins/tiddlywiki/googleanalytics/googleanalytics.js index ef333ffb9..891dcb815 100644 --- a/plugins/tiddlywiki/googleanalytics/googleanalytics.js +++ b/plugins/tiddlywiki/googleanalytics/googleanalytics.js @@ -6,7 +6,6 @@ module-type: startup Runs Google Analytics with the measurement ID in the tiddler `$:/GoogleAnalyticsMeasurementID` \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -55,7 +54,3 @@ exports.startup = function() { } } }; - - - -})(); diff --git a/plugins/tiddlywiki/highlight/highlightblock.js b/plugins/tiddlywiki/highlight/highlightblock.js index 1d8034631..07c6bb176 100644 --- a/plugins/tiddlywiki/highlight/highlightblock.js +++ b/plugins/tiddlywiki/highlight/highlightblock.js @@ -6,7 +6,6 @@ module-type: widget Wraps up the fenced code blocks parser for highlight and use in TiddlyWiki5 \*/ -(function() { /*jslint node: true, browser: true */ /*global $tw: false */ @@ -47,5 +46,3 @@ if(hljs.getLanguage !== undefined) { } }; } - -})(); diff --git a/plugins/tiddlywiki/innerwiki/anchor.js b/plugins/tiddlywiki/innerwiki/anchor.js index b18be7e7c..2f35892d8 100644 --- a/plugins/tiddlywiki/innerwiki/anchor.js +++ b/plugins/tiddlywiki/innerwiki/anchor.js @@ -6,12 +6,9 @@ module-type: widget Anchor widget to represent an innerwiki graphical anchor. Clone of the data widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; exports.anchor = require("$:/core/modules/widgets/data.js").data; - -})(); diff --git a/plugins/tiddlywiki/innerwiki/innerwiki.js b/plugins/tiddlywiki/innerwiki/innerwiki.js index 9bd58eba8..902f80fdb 100644 --- a/plugins/tiddlywiki/innerwiki/innerwiki.js +++ b/plugins/tiddlywiki/innerwiki/innerwiki.js @@ -6,7 +6,6 @@ module-type: widget Widget to display an innerwiki in an iframe \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -347,5 +346,3 @@ InnerWikiWidget.prototype.saveScreenshot = function(options,callback) { }; exports.innerwiki = InnerWikiWidget; - -})(); diff --git a/plugins/tiddlywiki/innerwiki/screenshot.js b/plugins/tiddlywiki/innerwiki/screenshot.js index 428dfb59e..b80ab2c46 100644 --- a/plugins/tiddlywiki/innerwiki/screenshot.js +++ b/plugins/tiddlywiki/innerwiki/screenshot.js @@ -6,7 +6,6 @@ module-type: command Commands to render tiddlers identified by a filter and save any screenshots identified by <$innerwiki> widgets \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -79,5 +78,3 @@ Command.prototype.findInnerWikiWidgets = function(widgetNode) { }; exports.Command = Command; - -})(); diff --git a/plugins/tiddlywiki/jasmine/jasmine-plugin.js b/plugins/tiddlywiki/jasmine/jasmine-plugin.js index 8dbf6568e..279a4989c 100644 --- a/plugins/tiddlywiki/jasmine/jasmine-plugin.js +++ b/plugins/tiddlywiki/jasmine/jasmine-plugin.js @@ -6,7 +6,6 @@ module-type: library The main module of the Jasmine test plugin for TiddlyWiki5 \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: true */ @@ -157,5 +156,3 @@ exports.runTests = function(callback,specFilter) { nodeJasmineWrapper.execute(null,specFilter); } }; - -})(); diff --git a/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js b/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js index 2e854cf46..6ffdc5ed4 100644 --- a/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js +++ b/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js @@ -6,7 +6,6 @@ tags: [[$:/tags/test-spec]] Tests the wiki based tests \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -99,5 +98,3 @@ describe("Wiki-based tests", function() { } }); - -})(); diff --git a/plugins/tiddlywiki/jasmine/startup.js b/plugins/tiddlywiki/jasmine/startup.js index 47aec342d..e6dbd62cf 100644 --- a/plugins/tiddlywiki/jasmine/startup.js +++ b/plugins/tiddlywiki/jasmine/startup.js @@ -6,7 +6,6 @@ module-type: startup The main module of the Jasmine test plugin for TiddlyWiki5 \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: true */ @@ -34,5 +33,3 @@ if($tw.browser) { // We make this check after the commands are run. exports.after = ["commands"]; } - -})(); diff --git a/plugins/tiddlywiki/jszip/startup.js b/plugins/tiddlywiki/jszip/startup.js index 26466d74e..d0eae1c6c 100644 --- a/plugins/tiddlywiki/jszip/startup.js +++ b/plugins/tiddlywiki/jszip/startup.js @@ -6,7 +6,6 @@ module-type: startup Setup the root widget event handlers \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -100,5 +99,3 @@ function downloadZipFile(title,filename) { document.body.removeChild(link); } } - -})(); diff --git a/plugins/tiddlywiki/katex/latex-parser.js b/plugins/tiddlywiki/katex/latex-parser.js index 6b72c7f51..5a4e76eb1 100644 --- a/plugins/tiddlywiki/katex/latex-parser.js +++ b/plugins/tiddlywiki/katex/latex-parser.js @@ -17,7 +17,6 @@ This wikiparser can be modified using the rules eg: ``` \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -65,5 +64,3 @@ exports.parse = function() { } }]; }; - -})(); diff --git a/plugins/tiddlywiki/katex/wrapper.js b/plugins/tiddlywiki/katex/wrapper.js index 1b41655ca..517a77634 100644 --- a/plugins/tiddlywiki/katex/wrapper.js +++ b/plugins/tiddlywiki/katex/wrapper.js @@ -6,7 +6,6 @@ module-type: widget Wrapper for `katex.min.js` that provides a `<$latex>` widget. It is also available under the alias `<$katex>` \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -94,6 +93,3 @@ KaTeXWidget.prototype.refresh = function(changedTiddlers) { exports.latex = KaTeXWidget; exports.katex = KaTeXWidget; - -})(); - diff --git a/plugins/tiddlywiki/markdown/markdown-it-katex.js b/plugins/tiddlywiki/markdown/markdown-it-katex.js index dc70f829a..8e80335eb 100644 --- a/plugins/tiddlywiki/markdown/markdown-it-katex.js +++ b/plugins/tiddlywiki/markdown/markdown-it-katex.js @@ -5,7 +5,6 @@ module-type: library Based on markdown-it-katex v2.0.0 by @waylonflinn https://github.com/waylonflinn/markdown-it-katex | MIT License \*/ -(function(){ /* Process inline math */ /* Like markdown-it-simplemath, this is a stripped down, simplified version of: @@ -166,5 +165,4 @@ function math_inline_block(state, silent) { module.exports = function math_plugin(md, options) { md.inline.ruler.after('escape', 'math_inline', math_inline); md.inline.ruler.after('escape', 'math_inline_block', math_inline_block); -}; -})(); \ No newline at end of file +}; \ No newline at end of file diff --git a/plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js b/plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js index 64189ba8b..eb7fc231e 100644 --- a/plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js +++ b/plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js @@ -6,7 +6,6 @@ module-type: library Wraps up the markdown-it parser for use as a Parser in TiddlyWiki \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -535,5 +534,3 @@ module.exports = function tiddlyWikiPlugin(markdown,options) { md.core.ruler.disable('text_join'); md.core.ruler.push('wikify',wikify); }; - -})(); diff --git a/plugins/tiddlywiki/markdown/wrapper.js b/plugins/tiddlywiki/markdown/wrapper.js index 708b932e3..38aaf5bd7 100755 --- a/plugins/tiddlywiki/markdown/wrapper.js +++ b/plugins/tiddlywiki/markdown/wrapper.js @@ -6,7 +6,6 @@ module-type: parser Wraps up the markdown-it parser for use as a Parser in TiddlyWiki \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -261,4 +260,3 @@ function MarkdownParser(type,text,options) { exports["text/markdown"] = MarkdownParser; exports["text/x-markdown"] = MarkdownParser; -})(); diff --git a/plugins/tiddlywiki/pluginlibrary/libraryserver.js b/plugins/tiddlywiki/pluginlibrary/libraryserver.js index 4f5f3e2ec..e11131828 100644 --- a/plugins/tiddlywiki/pluginlibrary/libraryserver.js +++ b/plugins/tiddlywiki/pluginlibrary/libraryserver.js @@ -6,7 +6,6 @@ module-type: library A simple HTTP-over-window.postMessage implementation of a standard TiddlyWeb-compatible server. It uses real HTTP to load the individual tiddler JSON files. \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -86,5 +85,3 @@ function httpGet(url,callback) { }; http.send(); } - -})(); diff --git a/plugins/tiddlywiki/qrcode/barcodereader.js b/plugins/tiddlywiki/qrcode/barcodereader.js index 79d259254..2f04bfe55 100644 --- a/plugins/tiddlywiki/qrcode/barcodereader.js +++ b/plugins/tiddlywiki/qrcode/barcodereader.js @@ -6,7 +6,6 @@ module-type: widget barcodereader widget for reading barcodes \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -86,5 +85,3 @@ BarCodeReaderWidget.prototype.refresh = function(changedTiddlers) { }; exports.barcodereader = BarCodeReaderWidget; - -})(); diff --git a/plugins/tiddlywiki/qrcode/makeqr.js b/plugins/tiddlywiki/qrcode/makeqr.js index 0328a8468..e0868e3c3 100644 --- a/plugins/tiddlywiki/qrcode/makeqr.js +++ b/plugins/tiddlywiki/qrcode/makeqr.js @@ -6,7 +6,6 @@ module-type: macro Macro to convert a string into a QR Code \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -69,6 +68,3 @@ function generateQrCode(text,options) { margin = parseInt((size - qr.getModuleCount() * cellsize) / 2); return qr.createImgTag(cellsize, margin, size); } - - -})(); diff --git a/plugins/tiddlywiki/railroad/components.js b/plugins/tiddlywiki/railroad/components.js index 85d0d16e2..6517dc884 100644 --- a/plugins/tiddlywiki/railroad/components.js +++ b/plugins/tiddlywiki/railroad/components.js @@ -6,7 +6,6 @@ module-type: library Components of a railroad diagram. \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -286,6 +285,4 @@ exports.components = { Sequence: Sequence, Terminal: Terminal, Transclusion: Transclusion -}; - -})(); \ No newline at end of file +}; \ No newline at end of file diff --git a/plugins/tiddlywiki/railroad/parser.js b/plugins/tiddlywiki/railroad/parser.js index 02256524d..fedef74d8 100644 --- a/plugins/tiddlywiki/railroad/parser.js +++ b/plugins/tiddlywiki/railroad/parser.js @@ -33,7 +33,6 @@ pragmas: \end single|double|none \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -447,6 +446,4 @@ Parser.prototype.readPragma = function(source,pos) { /////////////////////////// Exports -exports.parser = Parser; - -})(); \ No newline at end of file +exports.parser = Parser; \ No newline at end of file diff --git a/plugins/tiddlywiki/railroad/typed-parser.js b/plugins/tiddlywiki/railroad/typed-parser.js index c956ff09b..5f3d9fb9d 100644 --- a/plugins/tiddlywiki/railroad/typed-parser.js +++ b/plugins/tiddlywiki/railroad/typed-parser.js @@ -6,7 +6,6 @@ module-type: parser This parser wraps unadorned railroad syntax into a railroad widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -23,6 +22,3 @@ console.log(text); }; exports["text/vnd.tiddlywiki.railroad"] = RailroadParser; - -})(); - diff --git a/plugins/tiddlywiki/railroad/wrapper.js b/plugins/tiddlywiki/railroad/wrapper.js index 311d2f420..a46f7a838 100644 --- a/plugins/tiddlywiki/railroad/wrapper.js +++ b/plugins/tiddlywiki/railroad/wrapper.js @@ -6,7 +6,6 @@ module-type: widget Wrapper for `railroad-diagrams.js` that provides a `<$railroad>` widget. \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -142,6 +141,4 @@ RailroadWidget.prototype.dispatchLink = function(to,event) { return false; }; -exports.railroad = RailroadWidget; - -})(); \ No newline at end of file +exports.railroad = RailroadWidget; \ No newline at end of file diff --git a/plugins/tiddlywiki/savetrail/savetrail.js b/plugins/tiddlywiki/savetrail/savetrail.js index ec6fe7c01..0cbad16d6 100644 --- a/plugins/tiddlywiki/savetrail/savetrail.js +++ b/plugins/tiddlywiki/savetrail/savetrail.js @@ -6,7 +6,6 @@ module-type: startup A startup module to download every changed tiddler as a JSON file \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -149,5 +148,3 @@ function saveTiddlerFile(tiddler,options) { link.click(); document.body.removeChild(link); } - -})(); diff --git a/plugins/tiddlywiki/share/rawmarkup.js b/plugins/tiddlywiki/share/rawmarkup.js index 264f7fc73..0685c9dfa 100644 --- a/plugins/tiddlywiki/share/rawmarkup.js +++ b/plugins/tiddlywiki/share/rawmarkup.js @@ -6,7 +6,6 @@ module-type: library Read tiddlers from the browser location hash \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -108,5 +107,3 @@ function removeWarningBanner() { warningWrapper.parentNode.removeChild(warningWrapper); stylesWrapper.parentNode.removeChild(stylesWrapper); } - -})(); diff --git a/plugins/tiddlywiki/stacked-view/stacked.js b/plugins/tiddlywiki/stacked-view/stacked.js index 32d30d6d5..e99dc0490 100644 --- a/plugins/tiddlywiki/stacked-view/stacked.js +++ b/plugins/tiddlywiki/stacked-view/stacked.js @@ -6,7 +6,6 @@ module-type: storyview Keeps tiddlers in a stack \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -83,6 +82,4 @@ StackedListView.prototype.remove = function(widget) { widget.removeChildDomNodes(); }; -exports.stacked = StackedListView; - -})(); \ No newline at end of file +exports.stacked = StackedListView; \ No newline at end of file diff --git a/plugins/tiddlywiki/text-slicer/modules/filters/list-children.js b/plugins/tiddlywiki/text-slicer/modules/filters/list-children.js index 443f80a0b..bb0dc974e 100644 --- a/plugins/tiddlywiki/text-slicer/modules/filters/list-children.js +++ b/plugins/tiddlywiki/text-slicer/modules/filters/list-children.js @@ -6,7 +6,6 @@ module-type: filteroperator Filter operator returning all the descendents of a tiddler listed in the "list" field \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -34,5 +33,3 @@ exports["list-children"] = function(source,operator,options) { }); return Object.keys(children); }; - -})(); diff --git a/plugins/tiddlywiki/text-slicer/modules/slicer.js b/plugins/tiddlywiki/text-slicer/modules/slicer.js index 2fc2238bb..4edac157c 100644 --- a/plugins/tiddlywiki/text-slicer/modules/slicer.js +++ b/plugins/tiddlywiki/text-slicer/modules/slicer.js @@ -16,7 +16,6 @@ var slicer = new textSlicer.Slicer(doc,{ }); \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -474,5 +473,3 @@ Slicer.prototype.makeTitle = function(prefix) { }; exports.Slicer = Slicer; - -})(); diff --git a/plugins/tiddlywiki/text-slicer/modules/startup/slicer-startup.js b/plugins/tiddlywiki/text-slicer/modules/startup/slicer-startup.js index 19eeac5be..0cfe10da7 100644 --- a/plugins/tiddlywiki/text-slicer/modules/startup/slicer-startup.js +++ b/plugins/tiddlywiki/text-slicer/modules/startup/slicer-startup.js @@ -6,7 +6,6 @@ module-type: startup Setup the root widget event handlers \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -47,5 +46,3 @@ exports.startup = function() { }); }); }; - -})(); diff --git a/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js b/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js index b91ea3560..da2415afa 100644 --- a/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js +++ b/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js @@ -6,7 +6,6 @@ module-type: syncadaptor A sync adaptor module for synchronising with TiddlyWeb compatible servers \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -375,5 +374,3 @@ TiddlyWebAdaptor.prototype.parseEtag = function(etag) { if($tw.browser && document.location.protocol.substr(0,4) === "http" ) { exports.adaptorClass = TiddlyWebAdaptor; } - -})(); diff --git a/plugins/tiddlywiki/tw2parser/classictransclude.js b/plugins/tiddlywiki/tw2parser/classictransclude.js index 8afbed60c..b167e32fe 100644 --- a/plugins/tiddlywiki/tw2parser/classictransclude.js +++ b/plugins/tiddlywiki/tw2parser/classictransclude.js @@ -6,7 +6,6 @@ module-type: widget Transclude widget \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -191,5 +190,3 @@ TranscludeWidget.prototype.refresh = function(changedTiddlers) { }; exports.classictransclude = TranscludeWidget; - -})(); diff --git a/plugins/tiddlywiki/tw2parser/entry.js b/plugins/tiddlywiki/tw2parser/entry.js index 073221b8b..35398dd5c 100644 --- a/plugins/tiddlywiki/tw2parser/entry.js +++ b/plugins/tiddlywiki/tw2parser/entry.js @@ -3,7 +3,6 @@ title: $:/macros/tiddlywiki/entry.js type: application/javascript module-type: macro \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; @@ -27,4 +26,3 @@ exports.run = function(key,map) { return ""; } } -})(); diff --git a/plugins/tiddlywiki/tw2parser/parameteradapter.js b/plugins/tiddlywiki/tw2parser/parameteradapter.js index 7dc8e751d..f1ee2864c 100644 --- a/plugins/tiddlywiki/tw2parser/parameteradapter.js +++ b/plugins/tiddlywiki/tw2parser/parameteradapter.js @@ -3,7 +3,6 @@ title: $:/macros/classic/macroadapter.js type: application/javascript module-type: module \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -94,4 +93,3 @@ var paramadapter = { exports.name = 'macroadapter'; exports.namedapter = namedapter; exports.paramadapter = paramadapter; -})(); diff --git a/plugins/tiddlywiki/tw2parser/wikitextparser.js b/plugins/tiddlywiki/tw2parser/wikitextparser.js index fec58f3bd..830a1a1b6 100644 --- a/plugins/tiddlywiki/tw2parser/wikitextparser.js +++ b/plugins/tiddlywiki/tw2parser/wikitextparser.js @@ -28,7 +28,6 @@ HTML nodes look like this: ` \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -196,5 +195,3 @@ WikiTextParser.prototype.subWikifyTerm = function(output,terminatorRegExp) { }; exports["text/x-tiddlywiki"] = WikiTextParser; - -})(); diff --git a/plugins/tiddlywiki/tw2parser/wikitextrules.js b/plugins/tiddlywiki/tw2parser/wikitextrules.js index 068bb9757..c9428e4b3 100755 --- a/plugins/tiddlywiki/tw2parser/wikitextrules.js +++ b/plugins/tiddlywiki/tw2parser/wikitextrules.js @@ -6,7 +6,6 @@ module-type: module Rule modules for the wikitext parser \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -824,5 +823,3 @@ var rules = [ ]; exports.rules = rules; - -})(); diff --git a/plugins/tiddlywiki/twitter-archivist/archivist.js b/plugins/tiddlywiki/twitter-archivist/archivist.js index e0ffe2d52..b96fde39a 100644 --- a/plugins/tiddlywiki/twitter-archivist/archivist.js +++ b/plugins/tiddlywiki/twitter-archivist/archivist.js @@ -6,7 +6,6 @@ module-type: utils Utility class for manipulating Twitter archives \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -315,5 +314,3 @@ function arrayBufferToBase64(arrayBuffer) { exports.TwitterArchivist = TwitterArchivist; exports.TwitterArchivistSourceNodeJs = TwitterArchivistSourceNodeJs; exports.TwitterArchivistSourceBrowser = TwitterArchivistSourceBrowser; - -})(); diff --git a/plugins/tiddlywiki/twitter-archivist/loadtwitterarchive.js b/plugins/tiddlywiki/twitter-archivist/loadtwitterarchive.js index 497b82bf5..3ed301514 100644 --- a/plugins/tiddlywiki/twitter-archivist/loadtwitterarchive.js +++ b/plugins/tiddlywiki/twitter-archivist/loadtwitterarchive.js @@ -6,7 +6,6 @@ module-type: command Read tiddlers from an unzipped Twitter archive \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -49,5 +48,3 @@ Command.prototype.execute = function() { }; exports.Command = Command; - -})(); diff --git a/plugins/tiddlywiki/twitter-archivist/startup.js b/plugins/tiddlywiki/twitter-archivist/startup.js index b87453dda..6f733f817 100644 --- a/plugins/tiddlywiki/twitter-archivist/startup.js +++ b/plugins/tiddlywiki/twitter-archivist/startup.js @@ -6,7 +6,6 @@ module-type: startup Twitter initialisation \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -34,5 +33,3 @@ exports.startup = function() { }); }); }; - -})(); diff --git a/plugins/tiddlywiki/upgrade/config.js b/plugins/tiddlywiki/upgrade/config.js index 0c50f1fa7..f2fa28998 100644 --- a/plugins/tiddlywiki/upgrade/config.js +++ b/plugins/tiddlywiki/upgrade/config.js @@ -6,7 +6,6 @@ module-type: startup Startup module for configuring the upgrade plugin \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -22,5 +21,3 @@ exports.startup = function() { $tw.config.usePasswordVault = true; $tw.config.disableAutoSave = true; }; - -})(); diff --git a/plugins/tiddlywiki/xlsx-utils/deserializer.js b/plugins/tiddlywiki/xlsx-utils/deserializer.js index 250184d23..7fe28b0ca 100644 --- a/plugins/tiddlywiki/xlsx-utils/deserializer.js +++ b/plugins/tiddlywiki/xlsx-utils/deserializer.js @@ -6,7 +6,6 @@ module-type: tiddlerdeserializer XLSX file deserializer \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -26,5 +25,3 @@ exports["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] = f // Return the output tiddlers return importer.getResults(); }; - -})(); diff --git a/plugins/tiddlywiki/xlsx-utils/importer.js b/plugins/tiddlywiki/xlsx-utils/importer.js index 2bb963ab6..edda60c49 100644 --- a/plugins/tiddlywiki/xlsx-utils/importer.js +++ b/plugins/tiddlywiki/xlsx-utils/importer.js @@ -6,7 +6,6 @@ module-type: library Class to import an Excel file \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -201,5 +200,3 @@ XLSXImporter.prototype.findColumns = function(sheet,sheetSize) { }; exports.XLSXImporter = XLSXImporter; - -})(); diff --git a/plugins/tiddlywiki/xlsx-utils/startup.js b/plugins/tiddlywiki/xlsx-utils/startup.js index 15772384f..6692c115d 100644 --- a/plugins/tiddlywiki/xlsx-utils/startup.js +++ b/plugins/tiddlywiki/xlsx-utils/startup.js @@ -6,7 +6,6 @@ module-type: startup Initialisation \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -25,5 +24,3 @@ exports.startup = function() { logger.alert("The plugin 'xlsx-utils' requires the 'jszip' plugin to be installed"); } }; - -})(); diff --git a/plugins/tiddlywiki/xlsx-utils/xlsx-import-command.js b/plugins/tiddlywiki/xlsx-utils/xlsx-import-command.js index 98773a3c6..d8b6f66d3 100644 --- a/plugins/tiddlywiki/xlsx-utils/xlsx-import-command.js +++ b/plugins/tiddlywiki/xlsx-utils/xlsx-import-command.js @@ -6,7 +6,6 @@ module-type: command Command to import an xlsx file \*/ -(function(){ /*jslint node: true, browser: true */ /*global $tw: false */ @@ -42,5 +41,3 @@ Command.prototype.execute = function() { }; exports.Command = Command; - -})();