Permalink
Browse files

In HTML reference to classes not to have dots preceding them

  • Loading branch information...
1 parent e34a960 commit a734e2182aca78ab65940823a04223dc484bde7e @shafirov shafirov committed Mar 21, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/KaraLib/src/kara/views/attributes/AttributeTypes.kt
@@ -26,8 +26,9 @@ public open class StringAttribute(name : String): Attribute<String>(name) {
public class ClassAttribute(name: String): Attribute<StyleClass>(name) {
override fun encode(t: StyleClass): String {
- return t.toExternalForm()
+ return t.name()
}
+
override fun decode(s: String): StyleClass {
// Can't really be implemented unless all classes are registered somewhere
throw UnsupportedOperationException()

0 comments on commit a734e21

Please sign in to comment.