Skip to content

Commit

Permalink
fix removal of data-ko-properties after processing when applied to da…
Browse files Browse the repository at this point in the history
…ta-ko-block elements.

It was not correctly removed and logged an error for -ko- garbage.
  • Loading branch information
bago committed May 31, 2022
1 parent d615104 commit 60b7412
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/converter/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 60b7412

Please sign in to comment.