code: function() {
  
  		if (Lava.Core.isProcessingEvent()) {
  			Lava.logError("ViewManager::refresh() must not be called inside event listeners");
  			return;
  		}
  
  		if (this._is_refreshing) {
  			Lava.logError("ViewManager: recursive call to refresh()");
  			return;
  		}
  
  		Lava.ScopeManager.refresh();
  
  		if (this._dirty_views.length) {
  
  			this._is_refreshing = true;
  			Lava.ScopeManager.lock();
  			this._refresh_id++;
  
  			do {
  				var dirty_views = this._dirty_views,
  					has_exceptions;
  				this._dirty_views = [];
  				has_exceptions = this._refreshCycle(dirty_views);
  			} while (this._dirty_views.length && !has_exceptions);
  
  			Lava.ScopeManager.unlock();
  			this._is_refreshing = false;
  
  		}
  
  	}
docs: View refresh cycle. Call {@link Lava.view.Abstract#refresh} of all views in the queue, starting from the root views