1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-04 19:23:29 +00:00
TiddlyWiki5/core/modules
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
..
commands Improve output directory handling 2014-04-27 08:28:21 +01:00
filters Optimise the all filter operator 2014-04-30 22:50:47 +01:00
macros Get rid of the qualifyTiddlerTitles hack 2013-11-02 15:42:24 +00:00
parsers Implement explicit external links 2014-05-06 20:05:51 +01:00
savers Fix problem with saving if URL contains # 2014-05-05 13:30:31 +01:00
startup Fixes for running TiddlyWiki on node-webkit 2014-05-07 09:59:21 +01:00
storyviews Start adding support for permalinks 2014-05-02 19:21:32 +01:00
utils Fix problem with parsing main UI boot tiddlers 2014-05-06 10:14:22 +01:00
widgets Fixed problem with widgets variable access 2014-05-08 11:51:02 +01:00
commander.js Improve output directory handling 2014-04-27 08:28:21 +01:00
config.js Explicitly blacklist unsafe elements, starting with <script> 2014-03-19 10:05:44 +00:00
deserializers.js Accept single quotes for attributes in TW files 2014-05-01 17:58:49 +01:00
filters.js Allow filter operators to return an iterator 2014-04-30 22:50:17 +01:00
language.js Make more core strings be translateable 2014-03-20 20:55:59 +00:00
pluginswitcher.js Make shadowTiddlers, pluginTiddlers and pluginInfo be private to the Wiki object constructor 2014-03-17 10:50:18 +00:00
startup.js Fix problem with syncer not being initialised on server 2014-05-05 14:44:32 +01:00
syncer.js Use Date.now() instead of new Date() 2014-04-14 09:02:52 +01:00
tiddler.js Minor tweaks to shadow warning infrastructure 2014-04-28 15:16:31 +01:00
wiki.js Fix problem with parsing main UI boot tiddlers 2014-05-06 10:14:22 +01:00