Change != {} to !$.isEmptyObject(): the former always returned true because objects...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 23 Jul 2011 03:48:35 +0000 (03:48 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 23 Jul 2011 03:48:35 +0000 (03:48 +0000)
commita2ecfbc9452987c020c3c72c902f273954685cfd
tree896c219e12ec30a94924731ea8183bf8063081ab
parentcd0e41ca25d80dbb0f7bde6688219411b3b74503
Change != {} to !$.isEmptyObject(): the former always returned true because objects are compared by reference. This didn't cause any realistic problems, though: the worst that could happen is that if you have a module name longer than the query string request limit (which is extremely unusual), mediawiki.js would probably go into an infinite loop.
resources/mediawiki/mediawiki.js