Skip to content

Commit

Permalink
0.33
Browse files Browse the repository at this point in the history
  • Loading branch information
XenoAmess committed Dec 16, 2018
1 parent 8e9fb92 commit edf0dae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/xenoamess/x8l/ContentNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ public void addAttribute(String attributeString) {
}
}

public void removeAttribute(String attributeString) {
int index = attributeString.indexOf("=");
if (index == -1) {
} else {
attributeString = attributeString.substring(0, index);
}
this.attributes.remove(attributeString);
this.attributesKeyList.remove(attributeString);
}

@Override
public void show() {
super.show();
Expand Down

0 comments on commit edf0dae

Please sign in to comment.