« Return to Thread: behaviors context

Re: behaviors context

by Nedjo Rogers-2 :: Rate this Message:

Reply to Author | View in Thread

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.

 « Return to Thread: behaviors context