From 11a626acc929a30298bde4c4b83067ea43f22958 Mon Sep 17 00:00:00 2001 From: Roger Zhang Date: Tue, 8 Nov 2016 21:50:35 -0500 Subject: [PATCH] Changes to the close() function to now call the onClose callback --- jquery.bpopup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jquery.bpopup.js b/jquery.bpopup.js index 1586abe..2e42bf9 100644 --- a/jquery.bpopup.js +++ b/jquery.bpopup.js @@ -51,6 +51,8 @@ // PUBLIC FUNCTION - call it: $(element).bPopup().close(); //////////////////////////////////////////////////////////////////////////////////////////////////////////// $popup.close = function() { + o = this.data('bPopup'); + id = prefix +$w.data('bPopup') + '__'; close(); };