Fixed issue where 'change' event is being fired before the isNotDirty

property is updated. 

If you are relying on the 'change' event to do something, the 'isNotDirty' flag hasn't been updated yet so you cannot rely on the editor.isDirty() function to return the correct value. If my editor value has changed, isDirty() should be true...but in this case the flag hasn't flipped yet.