瀏覽代碼

Minor typo fixes.

Grzegorz Pabian 10 年之前
父節點
當前提交
415c1af6d0
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      packages/ckeditor5-utils/src/mvc/collection.js
  2. 1 1
      packages/ckeditor5-utils/src/mvc/model.js

+ 2 - 2
packages/ckeditor5-utils/src/mvc/collection.js

@@ -29,7 +29,7 @@ CKEDITOR.define( [ 'emitter', 'utils' ], function( EmitterMixin, utils ) {
 		/**
 		 * The number of items available in the collection.
 		 *
-		 * @property _models
+		 * @property length
 		 */
 		Object.defineProperty( this, 'length', {
 			get: function() {
@@ -47,7 +47,7 @@ CKEDITOR.define( [ 'emitter', 'utils' ], function( EmitterMixin, utils ) {
 		/**
 		 * Adds an item into the collection.
 		 *
-		 * Note that this os an array-like collection, so the same item can be present more than once. This behavior is
+		 * Note that this is an array-like collection, so the same item can be present more than once. This behavior is
 		 * for performance purposes only and is not guaranteed to be kept in the same way in the future.
 		 *
 		 * @param {Model} model The item to be added.

+ 1 - 1
packages/ckeditor5-utils/src/mvc/model.js

@@ -50,7 +50,7 @@ CKEDITOR.define( [ 'emitter', 'utils' ], function( EmitterMixin, utils ) {
 	utils.extend( Model.prototype, EmitterMixin, {
 		/**
 		 * Creates and sets the value of a model property of this object. This property will be part of the model state
-		 * and are observable.
+		 * and will be observable.
 		 *
 		 * It accepts also a single object literal containing key/value pairs with properties to be set.
 		 *