# Class: SaveStateChangedEvent

## SaveStateChangedEvent()

XMLEditorEvent sent whenenever the save state of the document being edited in an XMLEditor changes. Note that this may happen simply because the user has executed the undo command, reverting the document to its last saved state.

## Constructor

#### new SaveStateChangedEvent()

Source:
  - editor/SaveStateChangedEvent.js, line 8

### Classes

SaveStateChangedEvent

### Members

#### saveNeeded :boolean

Get the `saveNeeded` property of this event: tests whether the document being edited has changes which need to be saved.

##### Type:

- boolean

Source:
  - editor/SaveStateChangedEvent.js, line 19