From 1dd07f4bd25d5ee200dfd1fd6c8f8841ca76f715 Mon Sep 17 00:00:00 2001 From: shmyga Date: Mon, 18 Nov 2013 17:47:59 +0400 Subject: [PATCH] fixed findviewbyid method --- L.hx | 1 - haxework/gui/GroupView.hx | 4 ++-- haxework/gui/IGroupView.hx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/L.hx b/L.hx index d9df53a..21f5b89 100755 --- a/L.hx +++ b/L.hx @@ -11,7 +11,6 @@ class L { } public static function d(tag:String, message:String, ?error:Dynamic, ?p:haxe.PosInfos):Void { - //trace(p); for (logger in loggers) logger.d(tag, message, error, p); } diff --git a/haxework/gui/GroupView.hx b/haxework/gui/GroupView.hx index 238b389..76549e9 100755 --- a/haxework/gui/GroupView.hx +++ b/haxework/gui/GroupView.hx @@ -72,13 +72,13 @@ class GroupView extends View implements IGroupView { } } - public function findViewById>(id:String):Null { + public function findViewById>(id:String, ?clazz:Class):Null { var idd:Array = id.split(":"); if (idd.length > 1) { var id0 = idd.shift(); if (viewsById.exists(id0)) { var g:GroupView = findViewById(id0); - return g.findViewById(idd.join(":")); + return g.findViewById(idd.join(":"), clazz); } else { return null; } diff --git a/haxework/gui/IGroupView.hx b/haxework/gui/IGroupView.hx index 00f60a0..c9622b6 100755 --- a/haxework/gui/IGroupView.hx +++ b/haxework/gui/IGroupView.hx @@ -22,5 +22,5 @@ interface IGroupView extends IView { public function addView(view:IView):IView; public function removeView(view:IView):IView; public function removeViewById(id:String):IView; - public function findViewById>(id:String):Null; + public function findViewById>(id:String, ?clazz:Class):Null; } \ No newline at end of file