We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fefdb8c commit b5d1dc9Copy full SHA for b5d1dc9
modules/utils/Transition.js
@@ -8,8 +8,9 @@ var Promise = require('./Promise');
8
* A hook may return a promise if it needs to execute asynchronously.
9
*/
10
function runHooks(hooks, callback) {
11
+ var promise;
12
try {
- var promise = hooks.reduce(function (promise, hook) {
13
+ promise = hooks.reduce(function (promise, hook) {
14
// The first hook to use transition.wait makes the rest
15
// of the transition async from that point forward.
16
return promise ? promise.then(hook) : hook();
0 commit comments