Skip to content

Commit 8ab4540

Browse files
committed
rename hook_registry to hookRegistry
1 parent aba7373 commit 8ab4540

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
let hook_registry = {}
2+
let hookRegistry = {}
33

44
export default {
55
/**
@@ -23,17 +23,17 @@ export default {
2323
extension.initialize()
2424
}
2525
for (let hook in extension.hooks) {
26-
if (hook_registry[hook] === undefined) {
27-
hook_registry[hook] = Array.isArray(extension.hooks[hook])?
26+
if (hookRegistry[hook] === undefined) {
27+
hookRegistry[hook] = Array.isArray(extension.hooks[hook])?
2828
extension.hooks[hook] : [extension.hooks[hook]]
2929
}
3030
// console.debug(extension.name + ": registering a component for hook '" + hook + "'")
3131

3232
// add extension's component(s) to registry
3333
if (Array.isArray(extension.hooks[hook])) {
34-
hook_registry[hook].concat(extension.hooks[hook])
34+
hookRegistry[hook].concat(extension.hooks[hook])
3535
} else {
36-
hook_registry[hook].push(extension.hooks[hook])
36+
hookRegistry[hook].push(extension.hooks[hook])
3737
}
3838

3939
}
@@ -46,7 +46,7 @@ export default {
4646
},
4747
computed: {
4848
extensions () {
49-
return hook_registry[this.hook]
49+
return hookRegistry[this.hook]
5050
}
5151
},
5252
template: `

0 commit comments

Comments
 (0)