We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9421217 commit 50541ebCopy full SHA for 50541eb
lib/RouterMixin.js
@@ -183,7 +183,11 @@ var RouterMixin = {
183
}
184
185
//promise between before and navigation. usefull for ajax request and other async ops
186
- var promise = this.props.promise || function () {return new Promise(resolve=>{resolve()})};
+ var promise = this.props.promise || function () {
187
+ return new Promise(function (resolve) {
188
+ return resolve();
189
+ });
190
+ };
191
var _this = this;
192
promise().then( function () {
193
if (navigation.onBeforeNavigation &&
0 commit comments