1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-10 14:56:06 +00:00

Remove erroneous global wiki references

$tw.wiki is used as a global reference in the outer initialisation
modules. It shouldn’t be used in widgets etc.
This commit is contained in:
Jermolene
2014-05-07 14:49:14 +01:00
parent e548dd35af
commit 6ab68e0fca
2 changed files with 4 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ EditTextWidget.prototype.postRender = function() {
lineWrapping: true,
lineNumbers: true
},
tid = $tw.wiki.getTiddler(this.editTitle);
tid = this.wiki.getTiddler(this.editTitle);
if(tid && tid.fields.type) {
cm_opts.mode = tid.fields.type
};