Skip to content

Commit b5d1dc9

Browse files
committed
Fix variable scope
1 parent fefdb8c commit b5d1dc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/utils/Transition.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ var Promise = require('./Promise');
88
* A hook may return a promise if it needs to execute asynchronously.
99
*/
1010
function runHooks(hooks, callback) {
11+
var promise;
1112
try {
12-
var promise = hooks.reduce(function (promise, hook) {
13+
promise = hooks.reduce(function (promise, hook) {
1314
// The first hook to use transition.wait makes the rest
1415
// of the transition async from that point forward.
1516
return promise ? promise.then(hook) : hook();

0 commit comments

Comments
 (0)