Skip to content

Commit

Permalink
Fix fabien-d#70 - Remove root element
Browse files Browse the repository at this point in the history
When user clicks on the element (or its children), alertify should remove the root element.
  • Loading branch information
JoniJnm committed Mar 29, 2016
1 parent 27a90d5 commit 5456c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/alertify.js
Expand Up @@ -114,8 +114,8 @@
close: function(elem, wait) {

if (this.closeLogOnClick) {
elem.addEventListener("click", function(ev) {
hideElement(ev.srcElement);
elem.addEventListener("click", function() {
hideElement(elem);
});
}

Expand Down

0 comments on commit 5456c93

Please sign in to comment.