mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-18 21:05:57 +00:00
f6868d2567
OO.copy doesn't copy Element instances, whereas $.extend does. However, OO.copy does copy properties whose values are undefined or null, whereas $.extend doesn't. Since the state tree contains an Element instance - the preview.activeLink property - we need to use $.extend. Add the nextState helper function which copies the current state tree with $.extend and mixes in all updates manually. Change-Id: Ie8edd9fa0cc3a62a792ed60b49288f85b3ca73e9 |
||
---|---|---|
.. | ||
ext.popups | ||
ext.popups.core.test.js | ||
ext.popups.desktopRenderer.test.js | ||
ext.popups.renderer.article.test.js | ||
ext.popups.schemaPopups.utils.test.js | ||
ext.popups.settings.test.js |