HomePhabricator

mw.loader: Fix late loading of CSS in certain cases

Authored by Catrope.

Description

mw.loader: Fix late loading of CSS in certain cases

By protecting the CSS callbacks array against being
polluted by the callbacks themselves. This fixes
a bug where if A depends on B and both A and B have
styles, both A and B are executed once B's styles
have loaded (but before A's styles have loaded).
This breaks mw.loader's contract to only execute
A once its styles have loaded.

Bug: T105973
Change-Id: Ifa8fc7b3d275faa1f9a136a8c4a0e0a7cc358083

Details

Committed
CatropeJul 21 2015, 12:54 AM
Parents
rMW0a9ee5d9bf00: Merge "API: improve pageswithprop explanation"
Branches
Unknown
Tags
Unknown
ChangeId
Ifa8fc7b3d275faa1f9a136a8c4a0e0a7cc358083