1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
TiddlyWiki5/core
Jermolene e60fc9f81f Fixed problem with widgets variable access
Previously, widgets were reading variables from themselves or their
cascaded ancestors. That means that if a widget sets a variable and
then reads the same variable, it will get the same variable back. That
sounds reasonable, until you consider a widget that wants to modify a
variable - eg the tiddler macro. For example:

```
<$tiddler tiddler={{!!report}}>
<$transclude mode="block" />
</$tiddler>
```

Here we first evaluate the `{{!!report}}` reference, which involves
reading the currentTiddler variable, looking up the tiddler, and
retrieving it’s `report` field. The next the tiddler widget is
refreshed, it will use the newly set currentTiddler as the basis for
resolving the `{{!!reference}}` reference.

The fix is to get variables from ancestors, but continue to set them on
ourselves.
2014-05-08 11:51:02 +01:00
..
config/editor-type-mappings Take editor configuration from configuration tiddlers 2014-01-24 20:22:23 +00:00
images Replace hamburger icon with double chevron 2014-04-27 19:28:30 +01:00
language Remove support for browser-startup modules 2014-05-03 17:49:20 +01:00
modules Fixed problem with widgets variable access 2014-05-08 11:51:02 +01:00
palettes Default colour tweaks 2014-03-12 22:22:18 +00:00
templates Fix static stylesheets 2014-02-20 19:28:17 +00:00
ui Add hex colours to tag manager 2014-05-05 18:42:25 +01:00
wiki Fix incorrect filter in shadow $:/DefaultTiddlers 2014-05-07 13:43:12 +01:00
copyright.tid Update copyright year 2014-01-02 10:55:19 +00:00
plugin.info Ensure that the core plugins inherit their version number from the main package.info 2013-08-26 13:28:23 +01:00