We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe93424 commit 825bda8Copy full SHA for 825bda8
1 file changed
src/core/ModelManager.js
@@ -48,6 +48,8 @@ export default class ModelManager {
48
this.collapseState = {};
49
this.listeners = [];
50
51
+ this.runAllHooks();
52
+
53
if (this.model.defaultActiveView) {
54
this.activateView(this.model.defaultActiveView, 0);
55
}
@@ -245,6 +247,19 @@ export default class ModelManager {
245
247
246
248
// --------
249
250
+ runAllHooks() {
251
+ const names = Object.keys(this.data);
252
+ for (let i = 0; i < names.length; i++) {
253
+ const name = names[i];
254
+ const hooks = this.model.views[name].hooks || [];
255
+ for (let viewIdx = 0; viewIdx < this.data[name].length; viewIdx++) {
256
+ this.runHooks(name, viewIdx);
257
+ }
258
259
260
261
+ // --------
262
263
getPropertyList() {
264
const propertyList = [];
265
0 commit comments