Sfoglia il codice sorgente

Code style: Restored getDefinitions to its rightful place. [skip ci]

I accidentally moved it too while reordering Schema#setAttributeProperties() method.
Marek Lewandowski 6 anni fa
parent
commit
5a43cb616a
1 ha cambiato i file con 13 aggiunte e 13 eliminazioni
  1. 13 13
      packages/ckeditor5-engine/src/model/schema.js

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

@@ -149,6 +149,19 @@ export default class Schema {
 	}
 
 	/**
+	 * Returns all registered items.
+	 *
+	 * @returns {Object.<String,module:engine/model/schema~SchemaCompiledItemDefinition>}
+	 */
+	getDefinitions() {
+		if ( !this._compiledDefinitions ) {
+			this._compile();
+		}
+
+		return this._compiledDefinitions;
+	}
+
+	/**
 	 * Returns a definition of the given item or `undefined` if item is not registered.
 	 *
 	 * @param {module:engine/model/item~Item|module:engine/model/schema~SchemaContextItem|String} item
@@ -522,19 +535,6 @@ export default class Schema {
 	}
 
 	/**
-	 * Returns all registered items.
-	 *
-	 * @returns {Object.<String,module:engine/model/schema~SchemaCompiledItemDefinition>}
-	 */
-	getDefinitions() {
-		if ( !this._compiledDefinitions ) {
-			this._compile();
-		}
-
-		return this._compiledDefinitions;
-	}
-
-	/**
 	 * Returns the lowest {@link module:engine/model/schema~Schema#isLimit limit element} containing the entire
 	 * selection/range/position or the root otherwise.
 	 *