snowkit / mint

A framework/renderer agnostic Minimal UI interface library for Haxe.
http://snowkit.github.io/mint/
MIT License
65 stars 19 forks source link

Add a function to Control to get a child by name #38

Closed Blist closed 8 years ago

Blist commented 8 years ago

It's be cool if we have a Control.get("name") function that return a child with this name.

it's possible implementation

    public function get( _name:String) {
        return Lambda.find(children, function(child) {return child.name == _name;});
    }
ruby0x1 commented 8 years ago

see discussion on #39