Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickyleach/jQuery.bindLast
Binds events to be triggered after all the other "normally" bound events
https://github.com/nickyleach/jQuery.bindLast
Last synced: 16 days ago
JSON representation
Binds events to be triggered after all the other "normally" bound events
- Host: GitHub
- URL: https://github.com/nickyleach/jQuery.bindLast
- Owner: nickyleach
- Created: 2010-11-03T11:06:45.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-03T11:25:21.000Z (about 14 years ago)
- Last Synced: 2024-08-01T05:23:38.857Z (3 months ago)
- Homepage:
- Size: 86.9 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# jQuery.bindLast
`jQuery.bindLast` helps you add *some* order to event binding in jQuery. Events bound using `jQuery.bindLast()` are ensured to be executed after those events bound by the vanilla `jQuery.bind()`.The syntax is similar to `jQuery.bind()` with the exception that the `eventData` parameter is not currently supported. In other words:
`.bind( eventType, handler(eventObject) )`
***
__eventType__ A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names.
__handler(eventObject)__ A function to execute each time the event is triggered.Events bound using `bindLast` are __not__ guaranteed to run in any particular order, so in this way it behaves similarly to `bind`.