// GetEventBinding will return an EventBinding that exists directly on this element, it doesn't check its children.
// Returns nil is not found.
GetEventBinding will return an EventBinding that exists directly on this element, it doesn't check its children.
Returns nil is not found.
// GetEventBinding will return an EventBinding that exists directly on this element it doesn ' t check its children . // Returns nil is not found .
func (c *Component) GetEventBinding(id string) *EventBinding {
	for i := 0; i < len(c.bindings); i++ {
		if c.bindings[i].ID == id {
			return c.bindings[i]
		}
	}
	return nil
}
func ( c * Component ) GetEventBinding ( id string ) * EventBinding { for i := 0 ; i < len ( c . bindings ) ; i ++ { if c . bindings [ i ] . ID == id { return c . bindings [ i ] } } return nil }
GetEventBinding will return an EventBinding that exists directly on this element, it doesn't check its children.
GetEventBinding will return an EventBinding that exists directly on this element it doesn ' t check its children .