X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2FeventInfo.js;h=7e39cf4c1b7017106866a8298b5cfae3f7475762;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=dbeca5ca9d4943d7b03b41e52c8d3805630409ac;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/eventInfo.js b/_source/core/eventInfo.js index dbeca5c..7e39cf4 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-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -10,11 +10,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license */ /** - * This class is not really part of the API. It just illustrates the features - * of the event object passed to event listeners by a {@link CKEDITOR.event} - * based object. + * (Virtual Class) Do not call this constructor. This class is not really part + * of the API. + * @class Virtual class that illustrates the features of the event object to be + * passed to event listeners by a {@link CKEDITOR.event} based object. * @name CKEDITOR.eventInfo - * @constructor * @example * // Do not do this. * var myEvent = new CKEDITOR.eventInfo(); // Error: CKEDITOR.eventInfo is undefined @@ -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' + * }); + */