1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-01 00:32:49 +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-03 12:03:32 +00:00
2016-10-20 09:44:52 +01:00
2014-02-10 13:51:38 +00:00
2014-04-27 20:03:33 +01:00
2014-04-27 20:03:33 +01:00
2016-05-02 10:29:26 +01:00
2013-11-10 19:22:10 +00:00
2019-11-04 18:56:22 +00:00
2013-12-21 16:11:48 +00:00
2014-08-28 21:43:44 +01:00
2014-11-09 17:10:18 +00:00
2015-05-07 19:44:08 +01:00
2017-08-24 20:58:08 +01:00