Yeah.. I sort of agree.

I know that these events are heavily used by jQuery UI... but indeed,
$.data is called a lot (most function calls when I tested) and it's
always calling trigger.

--
Ariel Flesler
http://flesler.blogspot.com

On Oct 29, 11:02 am, Tim Molendijk <[EMAIL PROTECTED]> wrote:
> $.fn.data() internally uses $.fn.trigger() for whatever reason. When
> using $.fn.data() heavily, $.fn.trigger() starts to slow down the
> code. In my situation Firebug profiler tells me 20% of the time is
> consumed by $.fn.trigger() as a result of $.fn.data() calls.
>
> Shouldn't it be possible to get rid of $.fn.trigger() in $.fn.data()
> or make $.fn.trigger() more efficient?

Reply via email to