From 84244193f68de81de7c37d9a40cf1dcb4f4bbd50 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 17 Apr 2019 12:53:24 -0400 Subject: [PATCH] fixing an issue where deleting all of the shortcode attributes from the shortcode editor didn't clear the list --- js/shortcodeBuilder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/shortcodeBuilder.js b/js/shortcodeBuilder.js index 5bc25c39..85cd4aae 100644 --- a/js/shortcodeBuilder.js +++ b/js/shortcodeBuilder.js @@ -136,6 +136,7 @@ jQuery(function ($) { $("#"+type+"-container").empty(); } $(this).parent().remove(); + shortcodeAttributes[type].list = []; } $(".delete-attribute").remove(); }) -- 2.17.1