Browse Source

Added code comment to clarify what happens when EventInfo.off() is called.

fredck 10 years ago
parent
commit
765807269a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/ckeditor5-ui/src/emitter.js

+ 1 - 0
packages/ckeditor5-ui/src/emitter.js

@@ -225,6 +225,7 @@ CKEDITOR.define( [ 'eventinfo', 'utils' ], function( EventInfo, utils ) {
 			for ( var i = 0; i < callbacks.length; i++ ) {
 				callbacks[ i ].callback.apply( callbacks[ i ].ctx, args );
 
+				// Remove the callback from future requests if off() has been called.
 				if ( eventInfo.off.called ) {
 					// Remove the called mark for the next calls.
 					delete eventInfo.off.called;