Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
olivewind authored and bailicangdu committed Oct 22, 2021
1 parent 2484898 commit 025bf5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/sandbox/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default function effect (microWindow: microWindowType): Record<string, Ca
const umdDocumentListenerMap = new Map<string, Set<MicroEventListener>>()
let umdIntervalIdMap = new Map<number, timeInfo>()
let umdTimeoutIdMap = new Map<number, timeInfo>()
let umdonClickHander: unknown
let umdOnClickHandler: unknown

// record event and timer before exec umdMountHook
const recordUmdEffect = () => {
Expand All @@ -238,8 +238,8 @@ export default function effect (microWindow: microWindowType): Record<string, Ca
umdTimeoutIdMap = new Map(timeoutIdMap)
}

// record onclick hander
umdonClickHander = documentClickListMap.get(appName)
// record onclick handler
umdOnClickHandler = documentClickListMap.get(appName)

// record document event
const documentAppListenersMap = documentEventListenerMap.get(appName)
Expand Down Expand Up @@ -271,7 +271,7 @@ export default function effect (microWindow: microWindowType): Record<string, Ca
})

// rebuild onclick event
umdonClickHander && documentClickListMap.set(appName, umdonClickHander)
umdOnClickHandler && documentClickListMap.set(appName, umdOnClickHandler)

// rebuild document event
setCurrentAppName(appName)
Expand Down
2 changes: 1 addition & 1 deletion src/sandbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export default class SandBox implements SandBoxInterface {
}

/**
* nject global properties to microWindow
* inject global properties to microWindow
* @param microWindow micro window
* @param appName app name
* @param url app url
Expand Down

0 comments on commit 025bf5e

Please sign in to comment.