Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #73 from Deuteu/no-argument
Browse files Browse the repository at this point in the history
Deal with no argument passed.
  • Loading branch information
mnapoli authored Oct 6, 2016
2 parents d470b30 + acfc74b commit 88d1c71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jquery.confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
* @param [e] {Event}
*/
$.confirm = function (options, e) {
// Log error and exit when no options.
if (typeof options == "undefined") {
console.error("No options given.");
return;
}

// Do nothing when active confirm modal.
if ($('.confirmation-modal').length > 0)
return;
Expand Down

0 comments on commit 88d1c71

Please # to comment.