Skip to content

Commit

Permalink
Update vex-dialog to latest patch
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatliner committed Aug 31, 2016
1 parent 88ea186 commit ec70531
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/vex.combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ var plugin = function plugin (vex) {
// before opening the dialog on the page.

// Override the before close callback to also pass the value of the form
var beforeClose = options.beforeClose
var beforeClose = options.beforeClose && options.beforeClose.bind(dialogInstance)
dialogInstance.options.beforeClose = function dialogBeforeClose () {
// Only call the callback once - when the validation in beforeClose, if present, is true
var shouldClose = beforeClose ? beforeClose() : true
Expand Down
Loading

0 comments on commit ec70531

Please sign in to comment.