/* ClearUnsavedViewsModelCommand.as */ package gov.va.med.edp.command { import com.adobe.cairngorm.commands.ICommand; import com.adobe.cairngorm.control.CairngormEvent; import gov.va.med.edp.model.TrackingModelLocator; public class ClearUnsavedViewsModelCommand implements ICommand { private var model:TrackingModelLocator = TrackingModelLocator.getInstance(); public function execute(event:CairngormEvent):void { //clear all dirty flags model.logEdit.dirty = false; model.config.bedMods = false; model.config.boardMods = false; model.config.colorMods = false; model.config.paramMods = false; model.config.selectionMods = false; model.config.staffMods = false; } } }