Skip to content

Commit

Permalink
fix(shared): misspell for subscribable (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
RihuaChen committed Aug 25, 2021
1 parent 1b98e22 commit 8491f77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/shared/src/event.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isArr, isWindow } from './types'
import { Subscrible, ISubscriber } from './subscrible'
import { Subscribable, ISubscriber } from './subscribable'

const ATTACHED_SYMBOL = Symbol('ATTACHED_SYMBOL')

Expand Down Expand Up @@ -258,7 +258,7 @@ export class EventDriver<Engine extends Event = Event, Context = any>
/**
* 事件引擎
*/
export class Event extends Subscrible<ICustomEvent<any>> {
export class Event extends Subscribable<ICustomEvent<any>> {
private drivers: IEventDriverClass<any>[] = []
private containers: EventContainer[] = []
constructor(props?: IEventProps) {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './event'
export * from './scroller'
export * from './subscrible'
export * from './subscribable'
export * from './coordinate'
export * from './types'
export * from './uid'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface ISubscriber<Payload = any> {
(payload: Payload): void | boolean
}

export class Subscrible<ExtendsType = any> {
export class Subscribable<ExtendsType = any> {
private subscribers: {
index?: number
[key: number]: ISubscriber
Expand Down

0 comments on commit 8491f77

Please sign in to comment.