web-wiki/resources/mediawiki/mediawiki.js
/**
			 * Automatically executes jobs and modules which are pending with satistifed dependencies.
			 *
			 * This is used when dependencies are satisfied, such as when a module is executed.
			 */
Automatically executes jobs and modules which are pending with satistifed dependencies.

This is used when dependencies are satisfied, such as when a module is executed.
Automatically executes jobs and modules which are pending with satistifed dependencies . This is used when dependencies are satisfied such as when a module is executed .
function handlePending( module ) {
				var j, r;
				try {
					for ( j = 0; j < jobs.length; j += 1 ) {
						if ( compare(
							filter( 'ready', jobs[j].dependencies ),
							jobs[j].dependencies ) )
						{
							var callback = jobs[j].ready;
							jobs.splice( j, 1 );
							j -= 1;
							if ( $.isFunction( callback ) ) {
								callback();
							}
						}
					}
					for ( r in registry ) {
						if ( registry[r].state === 'loaded' ) {
							if ( compare(
								filter( ['ready'], registry[r].dependencies ),
								registry[r].dependencies ) )
							{
								execute( r );
							}
						}
					}
				} catch ( e ) {
					for ( j = 0; j < jobs.length; j += 1 ) {
						if ( $.inArray( module, jobs[j].dependencies ) !== -1 ) {
							if ( $.isFunction( jobs[j].error ) ) {
								jobs[j].error( e, module );
							}
							jobs.splice( j, 1 );
							j -= 1;
						}
					}
					throw e;
				}
			}
function handlePending ( module ) { var j , r ; try { for ( j = 0 ; j < jobs . length ; j += 1 ) { if ( compare ( filter ( 'ready' , jobs [ j ] . dependencies ) , jobs [ j ] . dependencies ) ) { var callback = jobs [ j ] . ready ; jobs . splice ( j , 1 ) ; j -= 1 ; if ( $ . isFunction ( callback ) ) { callback ( ) ; } } } for ( r in registry ) { if ( registry [ r ] . state === 'loaded' ) { if ( compare ( filter ( [ 'ready' ] , registry [ r ] . dependencies ) , registry [ r ] . dependencies ) ) { execute ( r ) ; } } } } catch ( e ) { for ( j = 0 ; j < jobs . length ; j += 1 ) { if ( $ . inArray ( module , jobs [ j ] . dependencies ) !== - 1 ) { if ( $ . isFunction ( jobs [ j ] . error ) ) { jobs [ j ] . error ( e , module ) ; } jobs . splice ( j , 1 ) ; j -= 1 ; } } throw e ; } }
Automatically executes jobs and modules which are pending with satistifed dependencies.
Automatically executes jobs and modules which are pending with satistifed dependencies .
// Run jobs whose dependencies have just been met
 // Execute modules whose dependencies have just been met
 // Run error callbacks of jobs affected by this condition
