[development] behaviors context

Nedjo Rogers nedjo at islandnet.com
Fri May 29 17:54:51 UTC 2009


David Cohen wrote:
> I'm trying to implement a Drupal.behavior.  I realize my behavior
> function is passed a "context".  But it's unclear to me what that
> context will be.

The context is supposed to be the element to be processed--not a jQuery
object but the page element. See the 5 - 6 upgrade notes:
http://drupal.org/node/114774#javascript-behaviors

However, this fact may have been lost along the way.


More information about the development mailing list