Skip to content

Commit

Permalink
Add save-start hook
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Jul 16, 2020
1 parent 0b90022 commit b20e0d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mavo.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ var _ = self.Mavo = $.Class({
},

async save () {
_.hooks.run("save-start", this);
let saved = await this.store();

if (saved) {
Expand Down

0 comments on commit b20e0d6

Please sign in to comment.