From 135ff9ee0ee94b117ac53341b2a254a48d312318 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 19 Dec 2014 17:10:14 -0500 Subject: [PATCH] #1470, remove popup should not error if called without popup --- src/definitions/modules/popup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index 7e410e3ce..006e48d3b 100644 --- a/src/definitions/modules/popup.js +++ b/src/definitions/modules/popup.js @@ -311,7 +311,9 @@ $.fn.popup = function(parameters) { removePopup: function() { module.debug('Removing popup'); $.proxy(settings.onRemove, $popup)(element); - $popup.remove(); + if($popup.size() > 0) { + $popup.remove(); + } }, save: {