Skip to content

Commit

Permalink
added beforeInit after context created
Browse files Browse the repository at this point in the history
  • Loading branch information
gunins committed Mar 23, 2017
1 parent 03edfb8 commit da7604e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/widget/Constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ define([
this.name = node.name;
}

this.beforeInit(...this._arguments);


};

Expand All @@ -102,6 +100,7 @@ define([

setContext(context) {
this.context = context;
this.beforeInit(...this._arguments);

if (!this.async) {
this.render();
Expand All @@ -123,7 +122,7 @@ define([
}

this._context = Object.assign({
match: match
match: match
}, context);
});
}
Expand Down

0 comments on commit da7604e

Please sign in to comment.