Ver código fonte

Re-fixed comments in stopListening().

fredck 11 anos atrás
pai
commit
3c71e352da
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

@@ -177,14 +177,14 @@ CKEDITOR.define( [ 'eventinfo', 'utils' ], function( EventInfo, utils ) {
 			if ( callback ) {
 				emitter.off( event, callback );
 			}
-			// Only the emitter and event provided. off() all callbacks for that event.
+			// Only `emitter` and `event` provided. off() all callbacks for that event.
 			else if ( eventCallbacks ) {
 				while ( ( callback = eventCallbacks.pop() ) ) {
 					emitter.off( event, callback );
 				}
 				delete emitterInfo.callbacks[ event ];
 			}
-			// Only the emitter provided. off() all events for that emitter.
+			// Only `emitter` provided. off() all events for that emitter.
 			else if ( emitterInfo ) {
 				for ( event in emitterInfo.callbacks ) {
 					this.stopListening( emitter, event );