https://bugzilla.wikimedia.org/show_bug.cgi?id=35077

--- Comment #2 from Krinkle <[email protected]> 2012-03-09 04:53:22 UTC ---
Didn't we solve this already?

The global array can't be trusted, never could and never can. It's looked at
once at a certain point (when onReady fires) and after that it's gone. Therefor
mw.toolbar.addButton was introduced.

user scripts and site scripts do load before onReady afaik (otherwise
mwCustomEditButtons wouldn't work at all). But this one is called through
importScript from MediaWiki:Common.js, separate http request.

I'm not sure what else we can do about this. Changing the script to use
mw.toolbar.addButton will fix it.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to