resourceloader: Introduce new module state "executing"
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 7 Sep 2015 19:56:06 +0000 (20:56 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 7 Sep 2015 20:04:56 +0000 (21:04 +0100)
commit6e903b94f2cc76bf27567584e44a34e221dbe001
tree262a33f6fccd49c81710a5942a587b10ce95e229
parent27a88a84506f190a68ef4b7f63e19bc5027e57e9
resourceloader: Introduce new module state "executing"

No longer re-use "loading" to avoid confusion.

Code paths to 'execute' (such as in 'handlePending') already prevent
double execution by only allowing execution to be started when a module
is in state "loaded". So when execute takes ownership by progressing
the state to "executing" (or "loading"), no other code paths will enter
execute until execute itself sets the next state (ready or failed).

Change-Id: I35c8d2bc2da7135456c39d4b513661d2d11fb0f4
resources/src/mediawiki/mediawiki.js
tests/qunit/suites/resources/mediawiki/mediawiki.test.js