// RemoveEventBinding removes an EventBinding that matches the passed ID.
//
// No error if the passed id doesn't match an EventBinding.
// It doesn't check its children.
RemoveEventBinding removes an EventBinding that matches the passed ID.

No error if the passed id doesn't match an EventBinding.
It doesn't check its children.
// RemoveEventBinding removes an EventBinding that matches the passed ID . // // No error if the passed id doesn ' t match an EventBinding . // It doesn ' t check its children .
func (c *Component) RemoveEventBinding(id string) {
	var newList []*EventBinding
	for i := 0; i < len(c.bindings); i++ {
		if c.bindings[i].ID == id {
			continue
		}
		newList = append(newList, c.bindings[i])
	}
	c.bindings = newList
	var value string
	for i := 0; i < len(c.bindings); i++ {
		value += c.bindings[i].ID + "|" + c.bindings[i].Name + ","
	}
	value = strings.TrimRight(value, ",")
	if value == "" {
		c.RemoveAttributes(AttrOn)
	} else {
		c.Add(Attrs{AttrOn: value})
	}
}
func ( c * Component ) RemoveEventBinding ( id string ) { var newList [ ] * EventBinding for i := 0 ; i < len ( c . bindings ) ; i ++ { if c . bindings [ i ] . ID == id { continue } newList = append ( newList , c . bindings [ i ] ) } c . bindings = newList var value string for i := 0 ; i < len ( c . bindings ) ; i ++ { value += c . bindings [ i ] . ID + " " + c . bindings [ i ] . Name + " " } value = strings . TrimRight ( value , " " ) if value == " " { c . RemoveAttributes ( AttrOn ) } else { c . Add ( Attrs { AttrOn : value } ) } }
RemoveEventBinding removes an EventBinding that matches the passed ID.
RemoveEventBinding removes an EventBinding that matches the passed ID .
// Reset attribute