Skip to content

Expand "Event Helpers" article #82

Closed
@ajpiano

Description

@ajpiano

Add a section to the beginning of this article explaning the story of bind, live, delegate, on, and their respective handler removal methods. Explain the evolution of these methods through the various jQuery versions, and explain that by 1.7, they are all just aliases for .on. Provide context on why users might have seen all the different syntaxes in different places on the web, depending on how recent the content is, but be clear about what the current best practise is.

For the existing content on $.fn.hover and $.fn.toggle explain how these methods do(n't) work as event names for event delegation (.on) - that they bind directly to the target elements.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions