Преглед изворни кода

Internal: Fixed stray safe initialization.

It is no longer needed as schema#getAttributeProperties() guarantees returning proper value.
Marek Lewandowski пре 6 година
родитељ
комит
28273e9d3b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/ckeditor5-engine/src/model/schema.js

+ 1 - 1
packages/ckeditor5-engine/src/model/schema.js

@@ -522,7 +522,7 @@ export default class Schema {
 	 * @param {module:engine/model/schema~AttributeProperties} properties A dictionary of properties.
 	 */
 	setAttributeProperties( attributeName, properties ) {
-		this._attributeProperties[ attributeName ] = Object.assign( this.getAttributeProperties( attributeName ) || {}, properties );
+		this._attributeProperties[ attributeName ] = Object.assign( this.getAttributeProperties( attributeName ), properties );
 	}
 
 	/**