Skip to content

Commit

Permalink
Fire callback and end event even when transition is not used
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
Magnus Jacobsson committed Nov 28, 2017
1 parent c871431 commit 1277bd2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,5 +324,12 @@ function _render(callback) {

graphvizInstance._dispatch.call('renderEnd', graphvizInstance);

if (transitionInstance == null) {
this._dispatch.call('end', this);
if (callback) {
callback.call(this);
}
}

return this;
};

0 comments on commit 1277bd2

Please sign in to comment.