1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 09:43:16 +00:00
TiddlyWiki5/core/modules
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
..
commands Dynamic plugins: Change "contains JavaScript" to "requires reload" 2019-09-27 16:47:55 +01:00
editor Revert "Fix test for needing to update text editor DOM" 2020-03-15 14:23:10 +00:00
filters Adding [is[binary]] filter -- Missed off 1150c87ed 2019-09-16 16:16:03 +01:00
indexers Fix for index ordering issue 2019-07-28 16:39:34 +01:00
info Add $:/info/browser/language to the info mechanism 2019-03-07 18:42:49 +00:00
macros Extend jsontiddlers macro to generate unformatted output 2020-02-04 13:57:24 +00:00
parsers Add download button/link to binary tiddler warning banners in view and edit mode (#4423) 2020-01-31 09:13:28 +00:00
savers Use CamelCase for Gitea (#4496) 2020-03-13 17:36:05 +00:00
server HTTP Server: should include bag in returned tiddlers 2019-10-06 17:34:50 +01:00
startup Extend refresh throttling to tiddlers having a "throttle.refresh" field 2019-10-14 10:42:14 +01:00
storyviews Pop storyview: fix bug where targetElement is null (#4143) 2019-08-02 08:51:16 +01:00
upgraders Dynamic plugins: Change "contains JavaScript" to "requires reload" 2019-09-27 16:47:55 +01:00
utils Add support for a custom class to modal wrapper (#4490) 2020-03-12 16:58:14 +00:00
widgets Fixes issue with #4504 and importvariable copying (#4518) 2020-03-19 20:32:51 +00:00
commander.js Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
config.js Move the wikilink regexps into global config 2014-11-26 11:12:25 +00:00
deserializers.js Add support for JSON files containing a single tiddler 2017-03-17 14:19:43 +00:00
filters.js Add support for = prefix for filter runs that doesn't remove duplicates 2019-06-10 17:54:20 +01:00
keyboard.js Add support for global keyboard shortcuts (#3493) 2018-11-06 13:34:51 +00:00
language.js Make lazy loading message be translateable 2015-09-08 10:41:27 +01:00
pluginswitcher.js Dynamic plugins: Fix registration of themes and languages 2019-09-16 13:17:09 +01:00
saver-handler.js SaverHandler: Don't generate file if autosave disabled 2019-03-05 15:43:14 +00:00
story.js Fix issues with creation and modification dates 2015-09-11 13:34:01 +01:00
syncer.js Syncer: add hidden setting for disabling lazy loading 2019-10-25 10:02:57 +01:00
tiddler.js Ensure tiddler.getFieldStringBlock uses a deterministic ordering 2019-04-14 14:23:49 +01:00
wiki-bulkops.js Fix unnecessary "list" field creation when renaming tiddlers 2019-07-30 17:10:53 +01:00
wiki.js Extend jsontiddlers macro to generate unformatted output 2020-02-04 13:57:24 +00:00