lib/packages/core.js
function() {

		var current_level = this._min_scope_refresh_level,
			count_levels = this._scope_refresh_queues.length,
			current_queue,
			i,
			count;

		for (;current_level < count_levels; current_level++) {

			if (current_level in this._scope_refresh_queues) {

				current_queue = this._scope_refresh_queues[current_level];
				count = current_queue.length;

				if (current_level in this._scope_refresh_current_indices) {

					i = this._scope_refresh_current_indices[current_level];

				} else {

					this._scope_refresh_current_indices[current_level] = 0;
					i = 0;

				}

				while (i < count) {

					if (current_queue[i]) {

						current_queue[i].refresh(this._refresh_id, true);

					}

					i++;
					this._scope_refresh_current_indices[current_level] = i;

				}

			}

		}

	}
function() {

		var current_level = this._min_scope_refresh_level,
			count_levels = this._scope_refresh_queues.length,
			current_queue,
			i,
			count;

		for (;current_level < count_levels; current_level++) {

			if (current_level in this._scope_refresh_queues) {

				current_queue = this._scope_refresh_queues[current_level];
				count = current_queue.length;

				if (current_level in this._scope_refresh_current_indices) {

					i = this._scope_refresh_current_indices[current_level];

				} else {

					this._scope_refresh_current_indices[current_level] = 0;
					i = 0;

				}

				while (i < count) {

					if (current_queue[i]) {

						current_queue[i].refresh(this._refresh_id, true);

					}

					i++;
					this._scope_refresh_current_indices[current_level] = i;

				}

			}

		}

	}
function ( ) { var current_level = this . _min_scope_refresh_level , count_levels = this . _scope_refresh_queues . length , current_queue , i , count ; for ( ; current_level < count_levels ; current_level ++ ) { if ( current_level in this . _scope_refresh_queues ) { current_queue = this . _scope_refresh_queues [ current_level ] ; count = current_queue . length ; if ( current_level in this . _scope_refresh_current_indices ) { i = this . _scope_refresh_current_indices [ current_level ] ; } else { this . _scope_refresh_current_indices [ current_level ] = 0 ; i = 0 ; } while ( i < count ) { if ( current_queue [ i ] ) { current_queue [ i ] . refresh ( this . _refresh_id , true ) ; } i ++ ; this . _scope_refresh_current_indices [ current_level ] = i ; } } } }
A refresh cycle that is launched in case of circular scope dependency
It will refresh all dirty scopes one time
A refresh cycle that is launched in case of circular scope dependency It will refresh all dirty scopes one time