mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 15:54:37 +00:00
Remove module function wrapper and add matching configurations for dprint and eslint (#7596)
* remove blks first try * dprint.json seems to be OK, some forgotten functions * add some more space-after-keyword settings * server remove blks * add **/files to dprint exclude * dprint.js fixes a typo * add boot.js and bootprefix.js to dprint exclude * dprint change dprint.json * add dprint fmt as script * remove jslint comments * fix whitespace * fix whitespace * remove function-wrapper from geospatial plugin * fix whitespace * add function wrapper to dyannotate-startup * remove dpring.json
This commit is contained in:
@@ -6,10 +6,7 @@ module-type: widget
|
||||
Dynannotate widget
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
var TextMap = require("$:/plugins/tiddlywiki/dynannotate/textmap.js").TextMap;
|
||||
@@ -433,5 +430,3 @@ DynannotateWidget.prototype.refresh = function(changedTiddlers) {
|
||||
};
|
||||
|
||||
exports.dynannotate = DynannotateWidget;
|
||||
|
||||
})();
|
||||
|
||||
@@ -7,9 +7,6 @@ Manages the element spotlight effect
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
function ElementSpotlight() {
|
||||
|
||||
@@ -6,10 +6,7 @@ module-type: library
|
||||
Legacy version of the dyannotate background daemon to track the selection
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
var TextMap = require("$:/plugins/tiddlywiki/dynannotate/textmap.js").TextMap;
|
||||
@@ -100,5 +97,3 @@ LegacySelectionTracker.prototype.findSelectionContainer = function findSelection
|
||||
};
|
||||
|
||||
exports.LegacySelectionTracker = LegacySelectionTracker;
|
||||
|
||||
})();
|
||||
|
||||
@@ -6,10 +6,7 @@ module-type: library
|
||||
Background daemon to track the selection
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
function SelectionTracker(wiki,options) {
|
||||
@@ -167,5 +164,3 @@ SelectionTracker.prototype.performSelectionActions = function(chunks,variables,a
|
||||
};
|
||||
|
||||
exports.SelectionTracker = SelectionTracker;
|
||||
|
||||
})();
|
||||
|
||||
@@ -10,8 +10,6 @@ Startup the dyannotate background daemon to track the selection
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
// Export name and synchronous status
|
||||
@@ -60,4 +58,3 @@ exports.startup = function() {
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
@@ -6,10 +6,7 @@ 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 */
|
||||
"use strict";
|
||||
|
||||
var PREFIX_SUFFIX_LENGTH = 50;
|
||||
@@ -178,5 +175,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))
|
||||
};
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user