mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Make getContextScopeId() more selective about context fields that are included
We were getting a problem whereby macro definitions were showing up in the context string.
This commit is contained in:
parent
6299026407
commit
627dba01e4
@ -129,11 +129,14 @@ WikiRenderTree.prototype.checkContextRecursion = function(renderer,newContext) {
|
||||
};
|
||||
|
||||
WikiRenderTree.prototype.getContextScopeId = function(renderer) {
|
||||
var guidBits = [];
|
||||
var guidBits = [],
|
||||
scopeComponents = ["tiddlerTitle","templateTitle"];
|
||||
while(renderer) {
|
||||
if(renderer.context) {
|
||||
$tw.utils.each(renderer.context,function(field,name) {
|
||||
guidBits.push(name + ":" + field + ";");
|
||||
if(scopeComponents.indexOf(name) !== -1) {
|
||||
guidBits.push(name + ":" + field + ";");
|
||||
}
|
||||
});
|
||||
guidBits.push("-");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user