소스 검색

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

fredck 11 년 전
부모
커밋
826ac59545
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/ckeditor5-engine/src/emitter.js

+ 1 - 0
packages/ckeditor5-engine/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;