Skip to content

Commit

Permalink
Update modal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
itchief authored Mar 29, 2020
1 parent 94b2be6 commit 5f1c83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $modal = function (options) {
destroy: function () {
_elemModal.parentElement.removeChild(_elemModal),
_elemModal.removeEventListener('click', _handlerCloseModal),
destroyed = true;
_destroyed = true;
},
setContent: function (html) {
_elemModal.querySelector('[data-modal="content"]').innerHTML = html;
Expand All @@ -91,4 +91,4 @@ $modal = function (options) {
_elemModal.querySelector('[data-modal="title"]').innerHTML = text;
}
}
};
};

0 comments on commit 5f1c83a

Please sign in to comment.