code: function(refresh_id) {
  
  		if (Lava.schema.DEBUG && !this._container) Lava.t("Refresh on a view without container");
  
  		this._is_queued_for_refresh = false;
  
  		if (this._is_inDOM && this._is_dirty) {
  
  			if (this._last_refresh_id == refresh_id) {
  
  				this._refresh_cycle_count++;
  				if (this._refresh_cycle_count > Lava.schema.system.REFRESH_INFINITE_LOOP_THRESHOLD) {
  
  					// schedule this view for refresh in the next refresh loop
  					Lava.view_manager.scheduleViewRefresh(this);
  					this._is_queued_for_refresh = true;
  					// when refresh returns true - it means an infinite loop exception,
  					// it stops current refresh loop.
  					return true;
  
  				}
  
  			} else {
  
  				this._last_refresh_id = refresh_id;
  				this._refresh_cycle_count = 0;
  
  			}
  
  			this._refresh();
  			this._is_dirty = false;
  
  		}
  
  		return false;
  
  	}
docs: Refresh the view, if it's dirty (render the view's content and replace old content with the fresh version).
  This method is called by ViewManager, you should not call it directly.
  
  Warning: violates code style with multiple return statements