From da7604e5a39f226ca32f64d8bcd470e1e963f5f9 Mon Sep 17 00:00:00 2001 From: Guntars Simanskis Date: Thu, 23 Mar 2017 19:49:14 +0000 Subject: [PATCH] added beforeInit after context created --- src/widget/Constructor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/widget/Constructor.js b/src/widget/Constructor.js index 6cbd827..7fcf495 100644 --- a/src/widget/Constructor.js +++ b/src/widget/Constructor.js @@ -90,8 +90,6 @@ define([ this.name = node.name; } - this.beforeInit(...this._arguments); - }; @@ -102,6 +100,7 @@ define([ setContext(context) { this.context = context; + this.beforeInit(...this._arguments); if (!this.async) { this.render(); @@ -123,7 +122,7 @@ define([ } this._context = Object.assign({ - match: match + match: match }, context); }); }