Skip to content

Commit 5d05c74

Browse files
author
Alexander Mays
committed
This fixes an issue exposed during testing with es6 where the scope on the 2nd invocation of handleFollowup isn't set
Signed-off-by: Alexander Mays <[email protected]>
1 parent 477a091 commit 5d05c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestWrite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ RestWrite.prototype.handleFollowup = function() {
362362
};
363363
delete this.storage['clearSessions'];
364364
return this.config.database.destroy('_Session', sessionQuery)
365-
.then(this.handleFollowup);
365+
.then(this.handleFollowup.bind(this));
366366
}
367367
};
368368

0 commit comments

Comments
 (0)