mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 15:16:50 +00:00
mw.popups.isEnabled should always return boolean
Mismatch between documentation and function signature Bug: T346106 Change-Id: I43e0efc67b76496aab228b3f971db795662337cf
This commit is contained in:
parent
90a829179c
commit
614039b7df
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -20,7 +20,7 @@ export default function createMwPopups( store, registerModel, registerPreviewUI,
|
|||
* @return {boolean} If Page Previews are currently active
|
||||
*/
|
||||
isEnabled: function isEnabled() {
|
||||
return store.getState().preview.enabled[ previewTypes.TYPE_PAGE ];
|
||||
return !!store.getState().preview.enabled[ previewTypes.TYPE_PAGE ];
|
||||
},
|
||||
/**
|
||||
* @stable Do not remove properties in the type PopupModule without providing backwards
|
||||
|
|
Loading…
Reference in a new issue