1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-02 16:56:56 +00:00
Cameron Fischer 561662782e
Fixes issue with #4504 and importvariable copying (#4518)
* Fixes issue with #4504 and importvariable copying

ImportVariables widget was using $tw.utils.extend to copy the
variables from temporary set widgets into itself. However,
$tw.utils.extend does NOT behave like Object.assign. It not only
copies all self-owned variables over, but also all variables
in that object's prototype chain. This led to some redundant copying,
and a problem where some variables might show up more than once
(like transclusion).

Fixed now. importvariables widget does its own copying, since it
can't rely on $tw.utils.extend to do the right job, and it can't
count on Object.assign to be there.

* Added test to prevent reversion of #4504

* Slight corrections to new importvariables test
2020-03-19 20:32:51 +00:00
..
2020-03-13 17:36:05 +00:00
2020-03-16 09:12:35 +00:00
2020-01-03 11:34:26 +00:00
2015-03-31 14:39:36 +01:00
2015-02-17 10:28:54 +00:00
2014-08-07 15:49:52 +01:00

title: $:/core/readme

This plugin contains TiddlyWiki's core components, comprising:

* JavaScript code modules
* Icons
* Templates needed to create TiddlyWiki's user interface
* British English (''en-GB'') translations of the localisable strings used by the core