attach()

Immediately attaches an element to a behavior.

The behavior will begin to receive events associated with the element after it has been attached.

Syntax

behavior.attach(element);

Notes

The jsb rule engine will usually attach behaviors within milliseconds of an element being inserted into the document. If you really need to attach a behavior immediately then you should use this method.

See Also