ソースを参照

Merge branch 'master' into t/70

Piotrek Koszuliński 9 年 前
コミット
5b79d4efb0
1 ファイル変更11 行追加8 行削除
  1. 11 8
      packages/ckeditor5-ui/src/domemittermixin.js

+ 11 - 8
packages/ckeditor5-ui/src/domemittermixin.js

@@ -47,10 +47,11 @@ extend( ProxyEmitter.prototype, EmitterMixin, {
 	 *
 	 * @param {String} event The name of the event.
 	 * @param {Function} callback The function to be called on event.
-	 * @param {Object} [ctx] The object that represents `this` in the callback. Defaults to the object firing the
-	 * event.
-	 * @param {Number} [priority=10] The priority of this callback in relation to other callbacks to that same event.
-	 * Lower values are called first.
+	 * @param {Object} [options={}] Additional options.
+	 * @param {utils.PriorityString|Number} [options.priority='normal'] The priority of this event callback. The higher
+	 * the priority value the sooner the callback will be fired. Events having the same priority are called in the
+	 * order they were added.
+	 * @param {Object} [options.context] The object that represents `this` in the callback. Defaults to the object firing the event.
 	 *
 	 * @method ui.ProxyEmitter#on
 	 */
@@ -83,7 +84,7 @@ extend( ProxyEmitter.prototype, EmitterMixin, {
 	 *
 	 * @param {String} event The name of the event.
 	 * @param {Function} callback The function to stop being called.
-	 * @param {Object} [ctx] The context object to be removed, pared with the given callback. To handle cases where
+	 * @param {Object} [context] The context object to be removed, pared with the given callback. To handle cases where
 	 * the same callback is used several times with different contexts.
 	 *
 	 * @method ui.ProxyEmitter#off
@@ -167,9 +168,11 @@ const DOMEmitterMixin = extend( {}, EmitterMixin, {
 	 * @param {utils.Emitter|Node} emitter The object that fires the event.
 	 * @param {String} event The name of the event.
 	 * @param {Function} callback The function to be called on event.
-	 * @param {Object} [ctx] The object that represents `this` in the callback. Defaults to `emitter`.
-	 * @param {Number} [priority=10] The priority of this callback in relation to other callbacks to that same event.
-	 * Lower values are called first.
+	 * @param {Object} [options={}] Additional options.
+	 * @param {utils.PriorityString|Number} [options.priority='normal'] The priority of this event callback. The higher
+	 * the priority value the sooner the callback will be fired. Events having the same priority are called in the
+	 * order they were added.
+	 * @param {Object} [options.context] The object that represents `this` in the callback. Defaults to the object firing the event.
 	 *
 	 * @method ui.DOMEmitterMixin#listenTo
 	 */