mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
Use "self" rather than "me" for consistency
This commit is contained in:
parent
17a9cdd1e3
commit
8e6ce3733d
@ -521,7 +521,7 @@ Options available:
|
|||||||
*/
|
*/
|
||||||
exports.search = function(text,options) {
|
exports.search = function(text,options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var me = this,t;
|
var self = this,t;
|
||||||
// Convert the search string into a regexp for each term
|
// Convert the search string into a regexp for each term
|
||||||
var terms, searchTermsRegExps,
|
var terms, searchTermsRegExps,
|
||||||
flags = options.caseSensitive ? "" : "i";
|
flags = options.caseSensitive ? "" : "i";
|
||||||
@ -542,7 +542,7 @@ exports.search = function(text,options) {
|
|||||||
}
|
}
|
||||||
// Function to check a given tiddler for the search term
|
// Function to check a given tiddler for the search term
|
||||||
var searchTiddler = function(title) {
|
var searchTiddler = function(title) {
|
||||||
var tiddler = me.getTiddler(title);
|
var tiddler = self.getTiddler(title);
|
||||||
if(!tiddler) {
|
if(!tiddler) {
|
||||||
return !!options.invert;
|
return !!options.invert;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user