Class: DirtyStatusChangedEvent

sync.api.Editor.DirtyStatusChangedEvent

new DirtyStatusChangedEvent(isDirty)

This event should be triggered when the dirty status of the editor changes.

Example of listening for this event:

goog.events.listen(editor, sync.api.Editor.EventTypes.DIRTY_STATUS_CHANGED, function(e) {
  // e is of type sync.api.Editor.DirtyStatusChangedEvent
});
Parameters:
Name Type Description
isDirty boolean If the editor has unsaved changes, isDirty should be true.
Source: