29 May
2009
29 May
'09
7:54 p.m.
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.