Explorar el Código

minor cleanup

ncannasse hace 12 años
padre
commit
8c4ff3aa89
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      h2d/comp/Button.hx
  2. 1 1
      h2d/comp/Checkbox.hx

+ 1 - 1
h2d/comp/Button.hx

@@ -10,7 +10,7 @@ class Button extends Component {
 	public function new(text, ?parent) {
 		super("button",parent);
 		input = new h2d.Interactive(0, 0, bg);
-		var active = false, out = false;
+		var active = false;
 		input.onPush = function(_) {
 			active = true;
 			onMouseDown();

+ 1 - 1
h2d/comp/Checkbox.hx

@@ -8,7 +8,7 @@ class Checkbox extends Component {
 	public function new(?parent) {
 		super("checkbox", parent);
 		input = new h2d.Interactive(0, 0, this);
-		var active = false, out = false;
+		var active = false;
 		input.onPush = function(_) {
 			active = true;
 		};