Skip to content

Commit

Permalink
fix crash on transition.size()
Browse files Browse the repository at this point in the history
fixes #112
  • Loading branch information
Fil committed Jul 30, 2020
1 parent 956f0ae commit 91990a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transition/end.js
@@ -1,7 +1,7 @@
import {set} from "./schedule.js";

export default function() {
var on0, on1, that = this, id = that._id, size = that.size();
var on0, on1, that = this, id = that._id, size = that.selection().size();
return new Promise(function(resolve, reject) {
var cancel = {value: reject},
end = {value: function() { if (--size === 0) resolve(); }};
Expand Down

0 comments on commit 91990a1

Please sign in to comment.