Permalink
Browse files

Fix minor issues found during review

  • Loading branch information...
1 parent c17cec3 commit 3b0569b3970d672e30f506acdd99adfbd6c6b095 @shafirov shafirov committed Mar 15, 2013
@@ -76,7 +76,7 @@ public class LinkAttribute(name: String) : Attribute<Link>(name) {
}
public trait StringEnum<T : Enum<T>> : Enum<T> {
- open val value : String get() = name()
+ val value : String get() = name()
}
public class EnumAttribute<T : StringEnum<T>>(name: String, val klass : Class<T>) : Attribute<T>(name) {
@@ -9,5 +9,5 @@ public enum class InputType: StringEnum<InputType> {
// HTML5:
color date datetime datetime_local email number range search tel time url month week
- override val value: String get() { return name().replace('_', '-') }
+ override val value: String = name().replace('_', '-')
}

0 comments on commit 3b0569b

Please sign in to comment.