From 60b7412f9d0f6957fb4fc373b00b2cfa1ec734a0 Mon Sep 17 00:00:00 2001 From: Bago Date: Tue, 31 May 2022 11:08:46 +0200 Subject: [PATCH] fix removal of data-ko-properties after processing when applied to data-ko-block elements. It was not correctly removed and logged an error for -ko- garbage. --- src/js/converter/parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/converter/parser.js b/src/js/converter/parser.js index 97a526f30..f7a0e64c1 100644 --- a/src/js/converter/parser.js +++ b/src/js/converter/parser.js @@ -106,6 +106,7 @@ var processBlock = function(element, defs, themeUpdater, blockPusher, templateUr var dataDefs = domutils.getAttribute(element, 'data-ko-properties'); if (dataDefs === null) dataDefs = ""; + else domutils.removeAttribute(element, 'data-ko-properties'); $("[data-ko-properties]", element).each(function(index, element) { if (dataDefs.length > 0) dataDefs = dataDefs + " "; dataDefs = dataDefs + domutils.getAttribute(element, 'data-ko-properties');