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(); };