Răsfoiți Sursa

Remove redundant variables de-referencing.

Maciej Gołaszewski 7 ani în urmă
părinte
comite
7f274d1020
1 a modificat fișierele cu 0 adăugiri și 2 ștergeri
  1. 0 2
      packages/ckeditor5-editor-inline/src/inlineeditor.js

+ 0 - 2
packages/ckeditor5-editor-inline/src/inlineeditor.js

@@ -95,13 +95,11 @@ export default class InlineEditor extends Editor {
 		const data = this.getData();
 		const data = this.getData();
 
 
 		this.ui.destroy();
 		this.ui.destroy();
-		this.ui = null;
 
 
 		return super.destroy()
 		return super.destroy()
 			.then( () => {
 			.then( () => {
 				if ( this.sourceElement ) {
 				if ( this.sourceElement ) {
 					setDataInElement( this.sourceElement, data );
 					setDataInElement( this.sourceElement, data );
-					this.sourceElement = null;
 				}
 				}
 			} );
 			} );
 	}
 	}