Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
added close handler. when we want to do something after close painterro
  • Loading branch information
dalgarins authored Mar 20, 2018
1 parent 77d019b commit 3cef22f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ class PainterroProc {
right: true,
activate: () => {
this.closeActiveTool();
this.close();
this.hide();
},
}];
Expand Down Expand Up @@ -586,6 +587,12 @@ class PainterroProc {
}
return this;
}

close() {
if (this.params.closeHandler !== undefined) {
this.params.closeHandler();
}
}

closeActiveTool(doNotSelect) {
if (this.activeTool !== undefined) {
Expand Down

0 comments on commit 3cef22f

Please sign in to comment.