| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /**
- * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- 'use strict';
- /**
- * The event object passed to event callbacks. It is used to provide information about the event as well as a tool to
- * manipulate it.
- *
- * @class EventInfo
- */
- CKEDITOR.define( [ 'utils' ], ( utils ) => {
- class EventInfo {
- constructor( source, name ) {
- /**
- * The object that fired the event.
- */
- this.source = source;
- /**
- * The event name.
- */
- this.name = name;
- // The following methods are defined in the constructor because they must be re-created per instance.
- /**
- * Stops the event emitter to call further callbacks for this event interaction.
- *
- * @method
- */
- this.stop = utils.spy();
- /**
- * Removes the current callback from future interactions of this event.
- *
- * @method
- */
- this.off = utils.spy();
- }
- }
- return EventInfo;
- } );
|