Page MenuHomePhabricator

modes.js should be moved into a Context.js to be consistent with PHP
Closed, ResolvedPublic

Description

The methods in modes.js are only used by features in alpha and beta yet loaded everywhere. We should stop binding to mw.mobileFrontend - and move it to a module called [Cc]ontext.js to be consistent with MobileContext. This should live in a separate ResourceLoader and any modules that live in beta/alpha should depend on this module so that we do not load the code in stable.

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson added a subscriber: Jdlrobson.
bmansurov set Security to None.

Change 183754 had a related patch set uploaded (by Bmansurov):
Move modes.js into context.js

https://gerrit.wikimedia.org/r/183754

Patch-For-Review

Change 183754 merged by jenkins-bot:
Move modes.js into context.js

https://gerrit.wikimedia.org/r/183754

Jdlrobson closed this task as Resolved.Jan 19 2015, 7:12 PM