From fa514ad4aecd55dc745e280270df87ff0f1bb0cc Mon Sep 17 00:00:00 2001 From: Young Date: Mon, 5 Mar 2018 18:05:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=97=B6=E5=9C=A8=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=8A=E6=B3=A8=E5=86=8Cafter&before?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/inject.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/inject.js b/src/core/inject.js index 761d615bf5..e8b388f71a 100644 --- a/src/core/inject.js +++ b/src/core/inject.js @@ -73,6 +73,8 @@ } if (!points[type][action]) { points[type][action] = {}; + } + if (!points[type][action][after ? "after" : "before"]) { points[type][action][after ? "after" : "before"] = []; } points[type][action][after ? "after" : "before"].push(pointFn);