Skip to content

Commit

Permalink
Merge pull request #122 from olivewind/fix/typo
Browse files Browse the repository at this point in the history
fix: typo
  • Loading branch information
bailicangdu authored Oct 21, 2021
2 parents 1f0e2b5 + c3a91f0 commit a833cb0
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 a833cb0

Please sign in to comment.