[development] behaviors context
merlin at logrus.com
Fri May 29 18:44:23 UTC 2009
> Thus my original claim: You are at the mercy of whatever calls
> Drupal.attachBehaviors(). Unless you are absolutely positive you can
> account for all use cases (and thus all callings of Drupal.attach()),
> you're better off ignoring context.
I totally disagree. It's either a jquery object or something you can
easily make into a jquery object. Using $(context) should always work
and you can get a DOM element using $(context).get(0). Ignoring context
will lead to poor performance.
More information about the development