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);