Browse Source

Code style: Proper method ordering.

Piotrek Koszuliński 8 years ago
parent
commit
a16df7edfd
1 changed files with 14 additions and 14 deletions
  1. 14 14
      packages/ckeditor5-engine/src/model/schema.js

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

@@ -440,6 +440,20 @@ export class SchemaItem {
 	}
 
 	/**
+	 * Custom toJSON method to solve child-parent circular dependencies.
+	 *
+	 * @returns {Object} Clone of this object with the parent property replaced with its name.
+	 */
+	toJSON() {
+		const json = clone( this );
+
+		// Due to circular references we need to remove parent reference.
+		json._schema = '[model.Schema]';
+
+		return json;
+	}
+
+	/**
 	 * Adds path to the SchemaItem instance.
 	 *
 	 * @private
@@ -529,20 +543,6 @@ export class SchemaItem {
 
 		return false;
 	}
-
-	/**
-	 * Custom toJSON method to solve child-parent circular dependencies.
-	 *
-	 * @returns {Object} Clone of this object with the parent property replaced with its name.
-	 */
-	toJSON() {
-		const json = clone( this );
-
-		// Due to circular references we need to remove parent reference.
-		json._schema = '[model.Schema]';
-
-		return json;
-	}
 }
 
 /**