From 717e9ae9137fad687b74eae88e454ed55fb633b8 Mon Sep 17 00:00:00 2001 From: Evolena Date: Sat, 24 Oct 2015 12:01:43 +0200 Subject: [PATCH] Better wording and naming --- plugins/tiddlywiki/text-slicer/docs.tid | 2 +- plugins/tiddlywiki/text-slicer/modules/slicers/definition.js | 4 ++-- plugins/tiddlywiki/text-slicer/modules/slicers/term.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/tiddlywiki/text-slicer/docs.tid b/plugins/tiddlywiki/text-slicer/docs.tid index 98f5edbf7..f08e5c9d7 100644 --- a/plugins/tiddlywiki/text-slicer/docs.tid +++ b/plugins/tiddlywiki/text-slicer/docs.tid @@ -151,7 +151,7 @@ Definition lists are represented by several tiddlers: one for the definition lis The tiddler representing the definition list itself has the following fields: * ''toc-type'': the text "def-list" -* ''toc-list-filter'': the default filter used to generate the titles of the list-items +* ''toc-list-filter'': the default filter used to generate the titles of the definition list items * ''title'': an automatically generated unique title * ''list'': ordered list of titles of tiddlers representing the items (terms and/or definition) in the definition list * ''tags'': any CSS classes found in the HTML are converted into tags diff --git a/plugins/tiddlywiki/text-slicer/modules/slicers/definition.js b/plugins/tiddlywiki/text-slicer/modules/slicers/definition.js index dc9a6d601..dc4d064c6 100644 --- a/plugins/tiddlywiki/text-slicer/modules/slicers/definition.js +++ b/plugins/tiddlywiki/text-slicer/modules/slicers/definition.js @@ -3,7 +3,7 @@ title: $:/plugins/tiddlywiki/text-slicer/modules/slicers/definition.js type: application/javascript module-type: slicer -Handle slicing definition list definition nodes +Handle slicing definition nodes in definition lists \*/ (function(){ @@ -12,7 +12,7 @@ Handle slicing definition list definition nodes /*global $tw: false */ "use strict"; -exports.processDefinitionItemNode = function(domNode,tagName) { +exports.processDefinitionNode = function(domNode,tagName) { var text = $tw.utils.htmlEncode(domNode.textContent); if(domNode.nodeType === 1 && tagName === "dd") { // if(!this.isBlank(text)) { diff --git a/plugins/tiddlywiki/text-slicer/modules/slicers/term.js b/plugins/tiddlywiki/text-slicer/modules/slicers/term.js index 0f340b60e..d72875e18 100644 --- a/plugins/tiddlywiki/text-slicer/modules/slicers/term.js +++ b/plugins/tiddlywiki/text-slicer/modules/slicers/term.js @@ -3,7 +3,7 @@ title: $:/plugins/tiddlywiki/text-slicer/modules/slicers/term.js type: application/javascript module-type: slicer -Handle slicing definition list term nodes +Handle slicing term nodes in definition lists \*/ (function(){ @@ -12,7 +12,7 @@ Handle slicing definition list term nodes /*global $tw: false */ "use strict"; -exports.processTermItemNode = function(domNode,tagName) { +exports.processTermNode = function(domNode,tagName) { var text = $tw.utils.htmlEncode(domNode.textContent); if(domNode.nodeType === 1 && tagName === "dt") { // if(!this.isBlank(text)) {