diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2016-01-21 17:25:14 +0000 |
---|---|---|
committer | Ori.livneh <ori@wikimedia.org> | 2016-01-27 02:03:00 +0000 |
commit | 0c8101570c3c1c9df01efc6a4fac1441ff080389 (patch) | |
tree | 5f00e2bf7be85a3ed9744aa3334a0aaf13d33109 /tests/phpunit/includes/diff/DiffOpTest.php | |
parent | 534b28dbaff2b226de85c1dc7d8d151c0d0b3368 (diff) | |
download | mediawikicore-0c8101570c3c1c9df01efc6a4fac1441ff080389.tar.gz mediawikicore-0c8101570c3c1c9df01efc6a4fac1441ff080389.zip |
resourceloader: Simplify and clean up RLQ wrap
startup.js:
* Don't assign to "window.RLQ" and read from "RLQ". Use the same
identifier in both places instead of relying on global scope.
* Create the global window.RLQ only once. The temporary [] fallback
doesn't need to be exposed globally, so use a local variable for
the loop that processes the pre-existing queue built up while
the startup module was loading.
OutputPage:
* Simplify the RLQ wrap to be more idiomatic and less repetitive.
Matches the pattern used in Google and Facebook open-source projects.
Change-Id: I9176377bc05432e51add841696a356428feec8ce
Diffstat (limited to 'tests/phpunit/includes/diff/DiffOpTest.php')
0 files changed, 0 insertions, 0 deletions