Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
michmech committed Mar 21, 2018
1 parent 743000b commit ef3ede5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xonomy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit ef3ede5

Please sign in to comment.