From ea3d5cdd97d2ceca041752df16dd0b875b382490 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Thu, 15 Jun 2017 23:56:30 -0700 Subject: [PATCH] Match Value properties to HTML --- Ooui/Button.cs | 6 ------ Ooui/TextArea.cs | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Ooui/Button.cs b/Ooui/Button.cs index 5e0a86d..90bc0f1 100644 --- a/Ooui/Button.cs +++ b/Ooui/Button.cs @@ -4,12 +4,6 @@ namespace Ooui { public class Button : FormControl { - string val = ""; - public string Value { - get => val; - set => SetProperty (ref val, value, "value"); - } - public event EventHandler Clicked { add => AddEventListener ("click", value); remove => RemoveEventListener ("click", value); diff --git a/Ooui/TextArea.cs b/Ooui/TextArea.cs index a3dab38..4b4c189 100644 --- a/Ooui/TextArea.cs +++ b/Ooui/TextArea.cs @@ -9,10 +9,10 @@ namespace Ooui remove => RemoveEventListener ("change", value); } - string text = ""; - public override string Text { - get => text; - set => SetProperty (ref text, value ?? "", "value"); + string val = ""; + public string Value { + get => val; + set => SetProperty (ref val, value ?? "", "value"); } int rows = 2;