The reason is that some events (mousemove/mouseover) I rarely use the
event properties, but the performance of that function is rather
expensive compared to the number of events being fired.  Fix might add
300ms of computation for the lifetime of a typical drag/drop event. (I
will happily get better numbers)

This is likely not a concern for most people.  But in the app I am
working on, it is the difference between a mouseover/enter looking
instantaneous, or a slight, but annoying lag.

I'm suggesting an additional parameter that will tell the event system
to pass the native event:

$("a").bind("mouseover", { ..data.. }, function(){ ... },  true); ...
true means raw event.

I suppose I should first look if there is a way to speed up fix before
changing the API.







On Nov 5, 8:14 pm, John Resig <jere...@gmail.com> wrote:
> The only case where that sort-of makes sense is for custom events. I
> mean, there's not much point in not-fixing the event object for some
> events - might as well do it for no events then.
>
> ...unless there's something else that you were considering?
>
> --John
>
>
>
> On Fri, Nov 6, 2009 at 2:43 AM, Justin Meyer <justinbme...@gmail.com> wrote:
> > The fix function is rather expensive for things like mousemove and
> > mouseover.  Can we make it possible that events won't be fixed for
> > certain events?
>
> > If you like this idea, I'll submit a patch.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "jQuery Development" group.
> > To post to this group, send email to jquery-...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > jquery-dev+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/jquery-dev?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=.


Reply via email to