1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Removed references to global store object

This commit is contained in:
Jeremy Ruston 2011-12-03 17:43:21 +00:00
parent 7521207e45
commit 8ac4a8bf87
2 changed files with 4 additions and 3 deletions

View File

@ -69,7 +69,7 @@ Formatter.enclosedTextHelper = function(w) {
};
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
return false;
}
@ -424,7 +424,7 @@ Formatter.formatters = [
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);
w.outputText(link,w.matchStart,w.nextMatch);
} else {

View File

@ -29,7 +29,8 @@ var Tiddler = require("./Tiddler.js").Tiddler,
util = require("util");
// Construct a wikifier object around a Formatter() object
var Wikifier = function(formatter) {
var Wikifier = function(store,formatter) {
this.store = store;
this.formatter = formatter;
this.autoLinkWikiWords = true;
};