mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 09:10:12 +00:00
Fix Special:Notifications
This was broken when replacing `$.extend` by `Object.assign` in
I1e603647c161bf940690f85f676edd7ebde7917d (commit 47ea647
).
`Object.assign` fails when the first argument is `undefined`, but
`$.extend` doesn't.
Bug: T368029
Change-Id: I13025a783c7f4d173dce096efa47f659273f0dd5
This commit is contained in:
parent
9e177c7149
commit
6a9528fd11
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
mw.echo.ui.ReadStateButtonSelectWidget = function MwEchoUiReadStateButtonSelectWidget( config ) {
|
||||
// Parent constructor
|
||||
mw.echo.ui.ReadStateButtonSelectWidget.super.call( this, Object.assign( config, {
|
||||
mw.echo.ui.ReadStateButtonSelectWidget.super.call( this, Object.assign( {}, config, {
|
||||
items: [
|
||||
new OO.ui.ButtonOptionWidget( {
|
||||
data: 'all',
|
||||
|
|
Loading…
Reference in a new issue