mediawiki-extensions-Popups/resources
Sam Smith a6423fbc75 Redefine when Page Previews are enabled
The Page Previews A/B test was disabled in T144490. After the changes
for that task had been deployed we discovered that the old definition
for when previews are enabled was invalid.

Previews are enabled:
* If the beta feature is enabled and the user has enabled the beta
  feature.
* The user hasn't disabled previews via the settings modal.
* And soon, if the beta feature is disabled and the user hasn't disabled
  previews via their user preferences (see T146889).

Changes:
* mw.popups#createExperiment -> mw.popups#isEnabled
* Make mw.popups#isEnabled act like a factory to maintain backwards
  compatibility.
* Update the associated tests.

Bug: T152687
Change-Id: I713a90dfb29866b27738e7d19e8a22518a12d417
2016-12-16 10:35:55 +00:00
..
ext.popups Redefine when Page Previews are enabled 2016-12-16 10:35:55 +00:00
ext.popups.core previews: Tidy up styles 2016-11-29 18:11:11 +00:00
ext.popups.desktop Introduce the settings dialog UI 2016-12-13 11:42:21 +01:00
ext.popups.images Hovercards: Improve layout of settings dialog to design spec 2016-08-10 14:01:36 -04:00
ext.popups.lib Use Redux and Redux Thunk 2016-11-08 15:33:20 -05:00
ext.popups.schemaPopups Hygiene: Rename getMassagedData to processHovercardEvent 2016-10-31 11:25:09 +00:00
ext.popups.schemaPopups.utils Hygiene: Rename getMassagedData to processHovercardEvent 2016-10-31 11:25:09 +00:00