Browse Source

There is no good reason to keep text.data readonly.

Piotr Jasiun 9 years ago
parent
commit
b8379270b0
1 changed files with 2 additions and 13 deletions
  1. 2 13
      packages/ckeditor5-engine/src/model/text.js

+ 2 - 13
packages/ckeditor5-engine/src/model/text.js

@@ -29,22 +29,11 @@ export default class Text extends Node {
 		super( attrs );
 
 		/**
-		 * Node's text.
+		 * Text data contained in this text node.
 		 *
 		 * @type {String}
-		 * @private
 		 */
-		this._data = data || '';
-	}
-
-	/**
-	 * Text data contained in this text node.
-	 *
-	 * @readonly
-	 * @type {String}
-	 */
-	get data() {
-		return this._data;
+		this.data = data || '';
 	}
 
 	/**