Browse Source

同时在一个方法上注册after&before

es6
Young 6 years ago
parent
commit
fa514ad4ae
  1. 2
      src/core/inject.js

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

Loading…
Cancel
Save