X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2FeventInfo.js;h=2e38828fff7e01e5409986e2913ffb8ccdda12f5;hb=fb481ba0a7d298e3e7b9034fcb9f2afdc6e8e796;hp=eee97f2fb0b58af153375e6b0138284586fa4e2d;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git diff --git a/_source/core/eventInfo.js b/_source/core/eventInfo.js index eee97f2..2e38828 100644 --- a/_source/core/eventInfo.js +++ b/_source/core/eventInfo.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -118,3 +118,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * }); * alert( someObject.fire( 'someEvent' ) ); // "true" */ + +/** + * Removes the current listener. + * @name CKEDITOR.eventInfo.prototype.removeListener + * @function + * @example + * someObject.on( 'someEvent', function( event ) + * { + * event.removeListener(); + * // Now this function won't be called again by 'someEvent' + * }); + */