Page MenuHomePhabricator

QuickSurveys could trigger Skin changed class
Closed, DeclinedPublic

Description

We could trigger a "changed" event on theSkin object from Extension:QuickSurveys after changing the html content.
(https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/resources/mobile.startup/Skin.js#L156-L159)
This would make sure that skin handlers get triggered when the HTML jumps

The only problem is QuickSurveys shouldn't know about the Skin class
We should probably thus make the Skin class use mw.hook and QuickSurveys subscribe to it.

Event Timeline

Jdlrobson removed a project: MobileFrontend.

I forget why this was important.