Ori Livneh 1603fd97a8 Use $.Callbacks to queue events until EL has loaded
This patch provides a workaround for bug 50746. It modifies mw.uls.eventLog so
that it does not directly attempt to log events but instead adds them to a
$.Callbacks('memory once') queue. If EventLogging is not enabled, the Callbacks
object never fires. If EventLogging is enabled, it is requested via
mw.loader.using, but only after $(document).ready. This prevents ResourceLoader
from attempting to inject it via document.write. The mw.loader.using callback
sets the schema defaults and calls .fire on the Callbacks object, causing the
EventLogging event queue to be processed. Tested on Opera 12 and Chrome 30 on
OS X.

Bug: 50746
Change-Id: I89cf06990ee85e70698149b4812d7900218e4fb4
2013-07-09 01:48:06 +00:00
2013-07-07 15:35:31 +03:00
2013-07-08 15:28:09 +05:30
2013-04-23 16:03:28 +03:00
2012-06-12 14:13:34 +02:00
2013-04-29 10:05:02 +02:00
2013-05-22 09:41:20 +05:30
2012-07-13 15:16:06 -04:00
2012-07-18 15:29:17 +03:00
2012-09-23 21:59:18 -07:00

== Copying ==

In short: You may use any Project Milkshake product, including the Universal
Language Selector, under the terms of either the MIT License or the GNU General
Public License (GPL) Version 2 or later.

See GPL-LICENSE and MIT-LICENSE for details.

== Installation ==
For a very, very quick start add the following to LocalSettings.php:

include("$IP/extensions/UniversalLanguageSelector/UniversalLanguageSelector.php");

== For Developers ==
The MediaWiki Universal Language Selector project uses jquery.uls(https://github.com/wikimedia/jquery.uls).
Its development is at wikimedia github account. So any fixes to lib/jquery.uls should happen at github. 
Follow the build instructions of jquery.uls to create jquery.uls.js.

More documenation is at
 https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector

== Change log ==
Languages
JavaScript 79.4%
HTML 11.9%
PHP 4.7%
Less 2.5%
CSS 1.4%
Other 0.1%