mirror of https://github.com/vuejs/vue.git
refactor: reduce component mergeHook arg count
Because f43ce3a5 removed the two extra args from init hook
This commit is contained in:
parent
8227fb3524
commit
faaf142cb6
|
|
@ -236,9 +236,9 @@ function installComponentHooks (data: VNodeData) {
|
|||
}
|
||||
|
||||
function mergeHook (f1, f2) {
|
||||
const merged = (a, b, c, d) => {
|
||||
f1(a, b, c, d)
|
||||
f2(a, b, c, d)
|
||||
const merged = (a, b) => {
|
||||
f1(a, b)
|
||||
f2(a, b)
|
||||
}
|
||||
merged._merged = true
|
||||
return merged
|
||||
|
|
|
|||
Loading…
Reference in New Issue