Przeglądaj źródła

Docs: fixed event names.

Maciek 9 lat temu
rodzic
commit
5ab8b36422

+ 4 - 4
packages/ckeditor5-utils/src/collection.js

@@ -76,7 +76,7 @@ export default class Collection {
 	 * @param {Object} item
 	 * @param {Number} [index] The position of the item in the collection. The item
 	 * is pushed to the collection when `index` not specified.
-	 * @fires #add
+	 * @fires add
 	 */
 	add( item, index ) {
 		let itemId;
@@ -157,7 +157,7 @@ export default class Collection {
 	 *
 	 * @param {Object|Number|String} subject The item to remove, its id or index in the collection.
 	 * @returns {Object} The removed item.
-	 * @fires #remove
+	 * @fires remove
 	 */
 	remove( subject ) {
 		let index, id, item;
@@ -262,14 +262,14 @@ export default class Collection {
 	/**
 	 * Fired when an item is added to the collection.
 	 *
-	 * @event module:utils/collection~Collection#add
+	 * @event add
 	 * @param {Object} item The added item.
 	 */
 
 	/**
 	 * Fired when an item is removed from the collection.
 	 *
-	 * @event module:utils/collection~Collection#remove
+	 * @event remove
 	 * @param {Object} item The removed item.
 	 */
 }

+ 3 - 3
packages/ckeditor5-utils/src/focustracker.js

@@ -112,7 +112,7 @@ export default class FocusTracker {
 	 * This method uses `setTimeout` to change order of fires `blur` and `focus` events.
 	 *
 	 * @private
-	 * @fires #blur
+	 * @fires blur
 	 */
 	_blur() {
 		this._nextEventLoopTimeout = setTimeout( () => {
@@ -122,11 +122,11 @@ export default class FocusTracker {
 	}
 
 	/**
-	 * @event #focus
+	 * @event focus
 	 */
 
 	/**
-	 * @event #blur
+	 * @event blur
 	 */
 }