Przeglądaj źródła

Added changesDone event to document - backward compatibility.

Oskar Wróbel 8 lat temu
rodzic
commit
66aacb1ac5

+ 3 - 0
packages/ckeditor5-engine/src/model/document.js

@@ -132,6 +132,9 @@ export default class Document {
 				this.fire( 'change', operation.type, evt.return, operation.delta.batch, operation.delta.type );
 			}
 		}, { priority: 'low' } );
+
+		// Temporary compatibility.
+		model.delegate( 'changesDone' ).to( this );
 	}
 
 	/**

+ 0 - 2
packages/ckeditor5-engine/src/model/model.js

@@ -62,8 +62,6 @@ export default class Model {
 		if ( this._pendingChanges.length == 1 ) {
 			this._runPendingChanges();
 		}
-
-		this.document.fire( 'changesDone' );
 	}
 
 	_runPendingChanges() {