Suggestion: to create a plugin or new method to support native event handlers (I don't know if the new Event class supports them, though), for the sake of performance.
Diogo On Thu, Jan 15, 2009 at 5:46 PM, John Resig <[email protected]> wrote: > > > If an event is defined in a tag, say <img onclick="alert('Sneh');" />, > > then $(img).unbind() has no effect on the onclick attribute. I have > > to go in an set the onclick="". > > > > Is this expected behavior? > > I'm not sure. Since it wasn't an event that we bound I'm not sure what > the protocol would be for removing it (we'd have to iterate through > every possible bound event and figure out if the on* version of it > exists - and if so, remove it. So yeah, I probably recommend just > setting the value into onclick yourself. > > --John > > > > -- Diogo Baeder http://www.diogobaeder.com.br --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
