Browse Source

refactor: reduce component mergeHook arg count

Because f43ce3a5 removed the two extra args from init hook
Evan You 8 năm trước cách đây
mục cha
commit
faaf142cb6
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/core/vdom/create-component.js

+ 3 - 3
src/core/vdom/create-component.js

@@ -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