Skip to content

Commit

Permalink
Remove the imports in the index.ts
Browse files Browse the repository at this point in the history
Restore the CommonEvent
  • Loading branch information
larsvanbraam committed Oct 12, 2017
1 parent 55b8994 commit e5796d8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ export { default as EventPhase } from './lib/EventPhase';
export { default as EventListenerData } from './lib/EventListenerData';
export { default as CallListenerResult } from './lib/CallListenerResult';
export { default as AbstractEvent } from './lib/AbstractEvent';
import './lib/event/CommonEvent';
import './lib/event/BasicEvent';
import './lib/util/eventTypeUtils';

export default _export;
20 changes: 20 additions & 0 deletions src/lib/event/CommonEvent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { generateEventTypes, EVENT_TYPE_PLACEHOLDER } from '../util/eventTypeUtils';
import AbstractEvent from '../AbstractEvent';

class CommonEvent extends AbstractEvent {
public static COMPLETE: string = EVENT_TYPE_PLACEHOLDER;
public static UPDATE: string = EVENT_TYPE_PLACEHOLDER;
public static INIT: string = EVENT_TYPE_PLACEHOLDER;
public static CHANGE: string = EVENT_TYPE_PLACEHOLDER;
public static OPEN: string = EVENT_TYPE_PLACEHOLDER;
public static CLOSE: string = EVENT_TYPE_PLACEHOLDER;
public static RESIZE: string = EVENT_TYPE_PLACEHOLDER;

public clone(): CommonEvent {
return new CommonEvent(this.type, this.bubbles, this.cancelable);
}
}

generateEventTypes({ CommonEvent });

export default CommonEvent;

0 comments on commit e5796d8

Please sign in to comment.