mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-30 22:44:08 +00:00
Fix nested colour definitions
This commit is contained in:
parent
1e5c69eb99
commit
4af573aaf9
@ -342,7 +342,15 @@ Widget.prototype.makeFakeWidgetWithVariables = function(variables) {
|
|||||||
makeFakeWidgetWithVariables: self.makeFakeWidgetWithVariables,
|
makeFakeWidgetWithVariables: self.makeFakeWidgetWithVariables,
|
||||||
resolveVariableParameters: self.resolveVariableParameters,
|
resolveVariableParameters: self.resolveVariableParameters,
|
||||||
wiki: self.wiki,
|
wiki: self.wiki,
|
||||||
variables: variables,
|
get variables() {
|
||||||
|
// We have to inefficiently fake the variables hashmap. It would be better to refactor the places
|
||||||
|
// that make direct access to the variables hashmap
|
||||||
|
const v = Object.create(self.parentWidget.variables || null);
|
||||||
|
$tw.utils.each(variables,function(value,name) {
|
||||||
|
v[name] = {value: value};
|
||||||
|
});
|
||||||
|
return v;
|
||||||
|
},
|
||||||
getAncestorCount: function() {
|
getAncestorCount: function() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user