Browse Source

Docs: Fixed incorrect API docs links and refs.

Maciej Bukowski 6 years ago
parent
commit
26e65f5f4f

+ 5 - 5
packages/ckeditor5-utils/src/ckeditorerror.js

@@ -93,9 +93,9 @@ export default class CKEditorError extends Error {
 	}
 
 	/**
-	 * A utility that ensures the the thrown error is a {@link utils/ckeditorerror~CKEditorError} one.
-	 * It is uesful when combined with the {@link watchdog/watchdog~Watchdog} feature, which can restart the editor in case
-	 * of a {@link utils/ckeditorerror~CKEditorError} error.
+	 * A utility that ensures the the thrown error is a {@link module:utils/ckeditorerror~CKEditorError} one.
+	 * It is uesful when combined with the {@link module:watchdog/watchdog~Watchdog} feature, which can restart the editor in case
+	 * of a {@link module:utils/ckeditorerror~CKEditorError} error.
 	 *
 	 * @param {Error} err An error.
 	 * @param {Object} context An object conected through properties with the editor instance. This context will be used
@@ -110,8 +110,8 @@ export default class CKEditorError extends Error {
 		 * An unexpected error occurred inside the CKEditor 5 codebase. The `error.data.originalError` property
 		 * shows the original error properties.
 		 *
-		 * This error is only useful when the editor is initialized using the {@link watchdog/watchdog~Watchdog} feature.
-		 * In case of such error (or any {@link utils/ckeditorerror~CKEditorError} error) the wathcdog should restart the editor.
+		 * This error is only useful when the editor is initialized using the {@link module:watchdog/watchdog~Watchdog} feature.
+		 * In case of such error (or any {@link module:utils/ckeditorerror~CKEditorError} error) the wathcdog should restart the editor.
 		 *
 		 * @error unexpected-error
 		 */

+ 2 - 1
packages/ckeditor5-utils/src/emittermixin.js

@@ -604,7 +604,8 @@ function getCallbacksForEvent( source, eventName ) {
 // Fires delegated events for given map of destinations.
 //
 // @private
-// * @param {Map.<utils.Emitter>} destinations A map containing `[ {@link utils.Emitter}, "event name" ]` pair destinations.
+// * @param {Map.<utils.Emitter>} destinations A map containing
+// `[ {@link module:utils/emittermixin~Emitter}, "event name" ]` pair destinations.
 // * @param {utils.EventInfo} eventInfo The original event info object.
 // * @param {Array.<*>} fireArgs Arguments the original event was fired with.
 function fireDelegatedEvents( destinations, eventInfo, fireArgs ) {

+ 5 - 4
packages/ckeditor5-utils/src/observablemixin.js

@@ -333,11 +333,12 @@ function initObservable( observable ) {
 	} );
 
 	// Object that stores which properties of this observable are bound and how. It shares
-	// the binding objects (`{ observable: A, property: 'a', to: ... }`) with {@link utils.ObservableMixin#_boundObservables}.
-	// This data structure is a reverse of {@link utils.ObservableMixin#_boundObservables} and it is helpful for
-	// {@link utils.ObservableMixin#unbind}.
+	// the binding objects (`{ observable: A, property: 'a', to: ... }`) with
+	// {@link module:utils/observablemixin~ObservableMixin#_boundObservables}. This data structure is
+	// a reverse of {@link module:utils/observablemixin~ObservableMixin#_boundObservables} and it is helpful for
+	// {@link module:utils/observablemixin~ObservableMixin#unbind}.
 	//
-	// See {@link utils.ObservableMixin#bind}.
+	// See {@link module:utils/observablemixin~ObservableMixin#bind}.
 	//
 	//		A.bind( 'a', 'b', 'c' ).to( B, 'x', 'y', 'x' );
 	//		console.log( A._boundProperties );

+ 1 - 1
packages/ckeditor5-utils/tests/_utils/locale-mock.js

@@ -4,7 +4,7 @@
  */
 
 /**
- * A replacement for the {@link utils.Locale} class.
+ * A replacement for the {@link module:utils/locale~Locale} class.
  *
  * @memberOf tests.utils._utils
  */

+ 2 - 2
packages/ckeditor5-utils/tests/_utils/utils.js

@@ -13,8 +13,8 @@ import CKEditorError from '../../src/ckeditorerror';
 import areConnectedThroughProperties from '../../src/areconnectedthroughproperties';
 
 /**
- * Creates an instance inheriting from {@link utils.EmitterMixin} with one additional method `observe()`.
- * It allows observing changes to attributes in objects being {@link utils.Observable observable}.
+ * Creates an instance inheriting from {@link module:utils/emittermixin~EmitterMixin} with one additional method `observe()`.
+ * It allows observing changes to attributes in objects being {@link module:utils/observablemixin~Observable observable}.
  *
  * The `observe()` method accepts:
  *