Skip to content

Commit 3b40859

Browse files
committed
fix:the spelling errors in the words
1 parent 2a3716b commit 3b40859

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hy-event-store",
3-
"version": "1.2.1",
3+
"version": "1.3.1",
44
"description": "An event-based global state management tool for vue, react, mini-program, ect.",
55
"main": "src/index.js",
66
"scripts": {

src/event-bus.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ class HYEventBus {
1212
throw new TypeError("the event callback must be function type")
1313
}
1414

15-
let hanlders = this.eventBus[eventName]
16-
if (!hanlders) {
17-
hanlders = []
18-
this.eventBus[eventName] = hanlders
15+
let handlers = this.eventBus[eventName]
16+
if (!handlers) {
17+
handlers = []
18+
this.eventBus[eventName] = handlers
1919
}
2020

21-
hanlders.push({
21+
handlers.push({
2222
eventCallback,
2323
thisArg
2424
})

0 commit comments

Comments
 (0)