Skip to content

Commit

Permalink
Update jquery.modal.js
Browse files Browse the repository at this point in the history
if the popup is triggered using jquery .modal() and not via an <a> link, line 88 throws an error because the anchor variable is not set
  • Loading branch information
garybenade committed Oct 5, 2017
1 parent e534f4e commit 3c66283
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquery.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
}
} else {
this.$elm = el;
this.anchor = el;
this.$body.append(this.$elm);
this.open();
}
Expand Down

0 comments on commit 3c66283

Please sign in to comment.