Skip to content

Commit

Permalink
add "bind-html" for ZK data binding
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Aug 21, 2014
1 parent a4de733 commit b172e76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/zkoss/angular/AngularParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class AngularParser implements NamespaceParser {
RESERVED_WORD.put("value", Boolean.TRUE);
RESERVED_WORD.put("model-options", Boolean.TRUE);
RESERVED_WORD.put("bind-template", Boolean.TRUE);
RESERVED_WORD.put("bind-html", Boolean.TRUE);
// RESERVED_WORD.put("bind-html", Boolean.TRUE);
RESERVED_WORD.put("class", Boolean.TRUE);
RESERVED_WORD.put("class-odd", Boolean.TRUE);
RESERVED_WORD.put("class-even", Boolean.TRUE);
Expand Down Expand Up @@ -138,7 +138,7 @@ public boolean parse(Attribute attr, ComponentInfo compInfo,
}

private static boolean isAnnotationSugar(String attrName) {
return ("model".equals(attrName) || "bind".equals(attrName));
return ("model".equals(attrName) || "bind".equals(attrName) || "bind-html".equals(attrName));
}
private static boolean isAnnotatable(String attrName) {
return !RESERVED_WORD.containsKey(attrName);
Expand Down

0 comments on commit b172e76

Please sign in to comment.