mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Removed references to global store object
This commit is contained in:
parent
7521207e45
commit
8ac4a8bf87
@ -69,7 +69,7 @@ Formatter.enclosedTextHelper = function(w) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Formatter.isExternalLink = function(link) {
|
Formatter.isExternalLink = function(link) {
|
||||||
if(store.tiddlerExists(link) || store.isShadowTiddler(link)) {
|
if(w.store.tiddlerExists(link) || w.store.isShadowTiddler(link)) {
|
||||||
// Definitely not an external link
|
// Definitely not an external link
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -424,7 +424,7 @@ Formatter.formatters = [
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(w.autoLinkWikiWords || store.isShadowTiddler(w.matchText)) {
|
if(w.autoLinkWikiWords || w.store.isShadowTiddler(w.matchText)) {
|
||||||
var link = createTiddlyLink(w.output,w.matchText,false,null,w.isStatic,w.tiddler);
|
var link = createTiddlyLink(w.output,w.matchText,false,null,w.isStatic,w.tiddler);
|
||||||
w.outputText(link,w.matchStart,w.nextMatch);
|
w.outputText(link,w.matchStart,w.nextMatch);
|
||||||
} else {
|
} else {
|
||||||
|
@ -29,7 +29,8 @@ var Tiddler = require("./Tiddler.js").Tiddler,
|
|||||||
util = require("util");
|
util = require("util");
|
||||||
|
|
||||||
// Construct a wikifier object around a Formatter() object
|
// Construct a wikifier object around a Formatter() object
|
||||||
var Wikifier = function(formatter) {
|
var Wikifier = function(store,formatter) {
|
||||||
|
this.store = store;
|
||||||
this.formatter = formatter;
|
this.formatter = formatter;
|
||||||
this.autoLinkWikiWords = true;
|
this.autoLinkWikiWords = true;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user