Abstract base class for assigning sets of events.
Certain special functions in a behavior class are used directly as event handlers. They follow one of two naming conventions:
onfollowed by an event name, as in
- an arbitrary identifier, a slash (
/), then the pattern above, as in
The former will be attached to the element assigned to
The latter will be attached to the element assigned to
foo is the part before the slash.
Arbitrary properties (like
this.foo) are designated by the
argument of the constructor.
new S2.UI.Behavior(element, options)
S2.UI.Behavior#destroy() -> undefined
Called when the behavior is removed from the element.