Browse Source

Merge pull request #274 in FUI/fineui from ~YOUNG/fineui:master to master

* commit 'fa514ad4aecd55dc745e280270df87ff0f1bb0cc':
  同时在一个方法上注册after&before
master
guy 7 years ago
parent
commit
6547852f57
  1. 2
      src/core/inject.js

2
src/core/inject.js

@ -73,6 +73,8 @@
} }
if (!points[type][action]) { if (!points[type][action]) {
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"] = [];
} }
points[type][action][after ? "after" : "before"].push(pointFn); points[type][action][after ? "after" : "before"].push(pointFn);

Loading…
Cancel
Save