"Johnduhart" changed the status of MediaWiki.r106007 to "fixme" and commented 
it.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/106007#c29140

Old Status: new
> New Status: fixme

Commit summary for MediaWiki.r106007:

Followup r100497, r101827: use another way which doesn't look that hacky to 
load styles in gadgets before documents. Also avoid double loading of the same 
stylesheet.

Now a gadget generates up to three modules:
* The first is known as meta module which still use its original name to keep 
B/C. It contains no contents, with dependencies of ones specified by user, 
scripts module, and styles module. See below.
* The second is known as scripts module whose name ends with ".scripts". It 
contains all scripts in this gadgets, with dependencies specified by user
* The third is known as styles module whose name ends with ".styles". It 
contains all styles in this gadgets and loaded before documents. After its load 
it's instantly marked as ready without dependencies resolved (which is the same 
as dependencies of .scripts but may not be used at all)

The meta module is loaded as if there's only one module under that name, and 
it's safe for users to reuse that name. The styles module is loaded and marked 
as ready in <head>, as described above. Normally the scripts and styles modules 
shouldn't be used by users.

A possible bug that dependency-only gadgets (ie. no scripts or styles) may not 
be loaded is fixed.

Johnduhart's comment:

Extending a class so you can access a protected function is not how you solve 
this problem. Figure out another solution. Leave this fixme unless another 
developer disagrees.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to