1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 23:34:50 +00:00
TiddlyWiki5/core/modules/widgets
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
..
browse.js Fix problem with "import" button not working 2013-12-30 11:54:51 +00:00
button.js Extend button widget to set text references 2014-03-15 17:02:13 +00:00
checkbox.js Fixed bug when using checkbox widget to apply a tag to a tiddler that is untagged 2013-11-10 19:21:37 +00:00
codeblock.js Clean up the highlight plugin 2014-02-10 13:51:38 +00:00
count.js Refactor wiki.filterTiddlers() 2014-04-27 20:03:33 +01:00
dropzone.js Restored drag and drop functionality within TEXTAREAs and INPUTs 2014-05-07 14:32:14 +01:00
edit-binary.js Add banner for binary tiddlers in edit mode 2014-05-02 09:43:39 +01:00
edit-bitmap.js Rough and ready control over bitmap editor line width and colour 2014-02-21 14:06:04 +00:00
edit-text.js Add hex colours to tag manager 2014-05-05 18:42:25 +01:00
edit.js Add banner for binary tiddlers in edit mode 2014-05-02 09:43:39 +01:00
element.js Explicitly blacklist unsafe elements, starting with <script> 2014-03-19 10:05:44 +00:00
encrypt.js Refactor wiki.filterTiddlers() 2014-04-27 20:03:33 +01:00
entity.js Improve the Widget.prototype.removeChildDomNodes() method so that most subclasses won't need to override it 2013-11-09 16:55:14 +00:00
fieldmangler.js Allow digits in field names 2014-04-28 15:54:32 +01:00
fields.js Improve the Widget.prototype.removeChildDomNodes() method so that most subclasses won't need to override it 2013-11-09 16:55:14 +00:00
image.js Added wikitext image support 2014-04-17 12:52:32 +01:00
keyboard.js Add experimental keyboard shortcut widget 2014-01-30 13:40:36 +00:00
link.js Optimise link widget 2014-04-05 17:37:58 +01:00
linkcatcher.js Fix linkcatcher message sending 2014-04-09 16:09:12 +01:00
list.js Refactor wiki.filterTiddlers() 2014-04-27 20:03:33 +01:00
macrocall.js Get rid of the "new_" prefix we had on some methods 2013-11-08 08:51:14 +00:00
navigator.js Remove erroneous global wiki references 2014-05-07 14:49:14 +01:00
password.js Fix default password 2013-11-10 19:22:10 +00:00
radio.js Cleaning up further coding style inconsistencies that have crept in 2014-01-03 10:50:00 +00:00
raw.js Added missing RawWidget 2013-12-21 16:11:48 +00:00
reveal.js Fix problem with the reveal widget not refreshing properly when used with text references 2014-02-13 17:59:10 +00:00
scrollable.js Use Date.now() instead of new Date() 2014-04-14 09:02:52 +01:00
setvariable.js Rename the 'setvariable' widget to 'set' 2013-11-15 18:31:39 +00:00
storyviews.js Add storyviews list filter and use it in view switcher 2014-03-24 22:17:45 +00:00
text.js Enhance text widget to optionally use "text" attribute 2014-01-19 21:45:55 +00:00
tiddler.js Change new_widget to widget 2013-11-08 08:47:00 +00:00
transclude.js New error message text for recursive transclusion error 2014-03-17 11:54:41 +00:00
view.js Fix view widget so that it works with indexes 2014-02-17 11:28:48 +00:00
widget.js Fixed problem with widgets variable access 2014-05-08 11:51:02 +01:00