Ver código fonte

Changed the way that default property value was defined.

Grzegorz Pabian 10 anos atrás
pai
commit
b97b7a0d85
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      packages/ckeditor5-ui/src/emitter.js

+ 2 - 2
packages/ckeditor5-ui/src/emitter.js

@@ -107,8 +107,8 @@ CKEDITOR.define( [ 'eventinfo', 'utils' ], function( EventInfo, utils ) {
 		 * @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] The priority of this callback in relation to other callbacks to that same event.
-		 * Lower values are called first. Defaults to `10`.
+		 * @param {Number} [priority=10] The priority of this callback in relation to other callbacks to that same event.
+		 * Lower values are called first.
 		 */
 		listenTo: function( emitter, event, callback, ctx, priority ) {
 			var emitters, emitterId, emitterInfo, eventCallbacks;