From 30404ec546554282a916cd5377600a0fb2739f37 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 17 Oct 2018 10:52:08 -0400 Subject: [PATCH] refactor: events -> eventEmitter --- packages/core/src/component.ts | 2 +- packages/core/src/index.ts | 2 +- packages/core/src/optional/{events.ts => eventEmitter.ts} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename packages/core/src/optional/{events.ts => eventEmitter.ts} (100%) diff --git a/packages/core/src/component.ts b/packages/core/src/component.ts index 604ceeac..1ef89edc 100644 --- a/packages/core/src/component.ts +++ b/packages/core/src/component.ts @@ -12,7 +12,7 @@ import { Autorun, DebuggerEvent, ComputedGetter } from '@vue/observer' import { nextTick } from '@vue/scheduler' import { ErrorTypes } from './errorHandling' import { initializeComponentInstance } from './componentUtils' -import { EventEmitter, invokeListeners } from './optional/events' +import { EventEmitter, invokeListeners } from './optional/eventEmitter' // public component instance type export interface Component

extends PublicInstanceMethods { diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index a4aeadea..9068dffc 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -17,7 +17,7 @@ export { Provide, Inject } from './optional/context' export { createAsyncComponent } from './optional/asyncComponent' export { KeepAlive } from './optional/keepAlive' export { mixins } from './optional/mixins' -export { EventEmitter } from './optional/events' +export { EventEmitter } from './optional/eventEmitter' // flags & types export { ComponentType, ComponentClass, FunctionalComponent } from './component' diff --git a/packages/core/src/optional/events.ts b/packages/core/src/optional/eventEmitter.ts similarity index 100% rename from packages/core/src/optional/events.ts rename to packages/core/src/optional/eventEmitter.ts