From ef3ede5c014e8160a14cbd13eb325c3dcc14e729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Boleslav=20M=C4=9Bchura?= Date: Wed, 21 Mar 2018 16:22:57 +0100 Subject: [PATCH] tweak --- xonomy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonomy.js b/xonomy.js index 3a31648..e44ed30 100755 --- a/xonomy.js +++ b/xonomy.js @@ -404,7 +404,7 @@ Xonomy.harvest=function() { //harvests the contents of an editor var rootElement=$(".xonomy .element").first().toArray()[0]; var js=Xonomy.harvestElement(rootElement); for(var key in Xonomy.namespaces) { - js.attributes.push({ + if(!js.hasAttribute(key)) js.attributes.push({ type: "attribute", name: key, value: Xonomy.namespaces[key],