Skip to content

Commit 50541eb

Browse files
author
vitalii
committed
router mixins patched
1 parent 9421217 commit 50541eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/RouterMixin.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ var RouterMixin = {
183183
}
184184

185185
//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()})};
186+
var promise = this.props.promise || function () {
187+
return new Promise(function (resolve) {
188+
return resolve();
189+
});
190+
};
187191
var _this = this;
188192
promise().then( function () {
189193
if (navigation.onBeforeNavigation &&

0 commit comments

Comments
 (0)