From 510d9fa8e18f20a5102a4775be8b80e8daac110e Mon Sep 17 00:00:00 2001 From: OPunWide Date: Mon, 15 Apr 2019 12:01:33 -0700 Subject: [PATCH] Minor changes to remove warnings from jQuery 3.4. Not extensively tested, but it works. The jQuery 3.x migration tool highlighted this as deprecated. --- jquery.modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.modal.js b/jquery.modal.js index 7e62a4d..237a7eb 100644 --- a/jquery.modal.js +++ b/jquery.modal.js @@ -85,7 +85,7 @@ open: function() { var m = this; this.block(); - this.anchor.blur(); + this.anchor.trigger('blur'); if(this.options.doFade) { setTimeout(function() { m.show(); @@ -98,7 +98,7 @@ if (event.which === 27 && current.options.escapeClose) current.close(); }); if (this.options.clickClose) - this.$blocker.click(function(e) { + this.$blocker.on('click', function(e) { if (e.target === this) $.modal.close(); });