aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify the special change/submit event removal logic, per Scott's ↵jeresig2010-02-101-5/+2
| | | | suggestion in 5267824aa36f0fcecb944a4daf0b99d6e01460fd.
* Updated formatting for the change/submit special event logic. Also switched ↵jeresig2010-02-081-83/+84
| | | | the function declarations to statements. Thanks to Garrett for the recommendation.
* Fix in logic for handling exclusive namespace testing. Fixes #6048.jeresig2010-02-081-2/+2
|
* Update special events to work with the internal event system changes. Also ↵jeresig2010-02-051-15/+17
| | | | fixes #5967.
* Rewrote the live event handling to use the new event logic. Also added in ↵jeresig2010-02-041-69/+84
| | | | support for live namespaced events. Fixes #5945.
* A large refactor of the event handling logic. Data and namespace information ↵jeresig2010-02-041-149/+142
| | | | is maintained in a separate object now, no longer on the event handler. Proxy functions are no longer needed, as a result. Additionally execution order of the handlers is maintained, fixing #4261, and the execution of handlers is maintained even while they're being removed. Live events will be refactored separately.
* Add .delegate() and .undelegate(). An alternative to using .live() which ↵jeresig2010-02-011-6/+22
| | | | goes from a single root and filters by the specified selectors. Should be used like do: .delegate(td, hover, someFn);. Fixes #6005.
* Further optimize the empty/remove/cleanData logic.jeresig2010-01-281-5/+9
|
* Provide a way to simulate default browser actions. Fixes #5973.jeresig2010-01-281-2/+5
|
* Make sure namespaces is always an array, when passed to the remove special. ↵jeresig2010-01-281-2/+5
| | | | Follow-up to eed69eccc54d010889b5d8495320538d7ceb4e51.
* Make sure that jQuery.data( elem ) always returns a data object, fixes ↵jeresig2010-01-281-41/+79
| | | | #5971. Improve the performance of .bind() and .unbind(), fixes #5972.
* No reason to limit the initial change data store to just radio elements. ↵jeresig2010-01-271-4/+1
| | | | Fixes #5851.
* Make sure that special.add actually copies over event namespaces and data. ↵jeresig2010-01-251-0/+2
| | | | Fixes #5779 and #5834.
* Make sure multiple bound events have their namespaces and data maintained. ↵jeresig2010-01-251-3/+12
| | | | Fixes #3549.
* Make sure that it's possible to preventDefault natively-triggered (submit, ↵jeresig2010-01-251-20/+32
| | | | focus, blur, click) events. Fixes #5695.
* Make sure that .die() with no args works. Fixes #5789.jeresig2010-01-231-3/+3
|
* Select (with a selected) fired change on first focus in IE. Fixes #5869.Matt Curry2010-01-231-4/+4
|
* Added support for multiple live event handlers, live hover, and live ↵Irae Brasil2010-01-231-9/+24
| | | | focus/blur (mapped to focusin/focusout). Fixes #5804, #5801, #5852.
* Make sure that live handlers don't stop inline scripts from executing. Fixes ↵Irae Brasil2010-01-231-1/+1
| | | | #5835.
* Make sure non-left-click events don't bubble. Fixes #3861.Irae Brasil2010-01-231-0/+5
|
* Adding in the change recommended by Alexander Farkas to fix some bugs in the ↵jeresig2010-01-181-2/+2
| | | | change delegation logic. Fixes #5851.
* Fix missing var declaration for the length iterator.jeresig2010-01-181-1/+1
|
* Expose the proxy object on the object, for the benefit of plugin authors ↵John Resig2010-01-151-0/+2
| | | | (Thanks to Justin Meyer for the suggestion).
* Removed extraneous thisObject references. Thanks to Matt Dunlap for the ↵John Resig2010-01-141-2/+1
| | | | heads-up.
* Make sure no exception is thrown if no event handler is found (which is the ↵jeresig2010-01-131-0/+6
| | | | case for applets, objects, and embeds).
* Fixed typo in logic, also disabled function setters in this case to allow ↵jeresig2010-01-121-2/+2
| | | | the functions to passthrough and bind.
* Make sure that the focusin and focusout easy-bind methods are exposed.jeresig2010-01-121-1/+1
|
* Revert "Adding in backwards-compatiblity support for ↵jeresig2010-01-111-18/+5
| | | | | | jQuery().bind/unbind/trigger - and immediately deprecating it. Please explicitly use jQuery(document) in your code." This reverts commit e9d5947b4abbc052046585227892da0adcd56caf.
* Make sure that submit event is still bound for regular form submit events. ↵jeresig2010-01-111-0/+3
| | | | Thanks to Mark Gibson for the fix suggestion.
* Adding in backwards-compatiblity support for jQuery().bind/unbind/trigger - ↵jeresig2010-01-061-5/+18
| | | | and immediately deprecating it. Please explicitly use jQuery(document) in your code.
* Merging in jQuery.proxy() branch.jeresig2010-01-051-29/+16
|\
| * Added in a holdover jQuery.event.guid for back-compat (two plugins use it: ↵jeresig2010-01-051-0/+4
| | | | | | | | mousewheel and a datepicker). Plugin authors should work to stop using jQuery.event.guid and jQuery.event.proxy ASAP.
| * Moved jQuery.proxy() into core.jeresig2009-12-311-20/+3
| |
| * Remove the .bind(name, fn, thisObject) and promote jQuery.event.proxy() to ↵jeresig2009-12-311-30/+30
| | | | | | | | jQuery.proxy() as alternative to handling scoping on callbacks. Fixes #5736.
* | Merge branch 'bug-5735'jeresig2009-12-311-1/+1
|\ \
| * | Rather than declaring empty anonymous functions all around, introduce and ↵jeresig2009-12-311-1/+1
| |/ | | | | | | use a single empty function. Thanks to Matt Kruse for the suggestion.
* / When .bind('unload') was called it accidentally went recursive, from ↵jeresig2009-12-311-3/+5
|/ | | | 1bac61655b6c323ab4bcfc65b0d95c1587dd8503. Fixes #5688.
* Fixed spelling mistake noted in dc6b7ce3469eaadb37a151d449e8d36571d1894.jeresig2009-12-211-1/+1
|
* Standardize on using double-quotes for string literals.jeresig2009-12-211-2/+3
|
* Made a number of spacing changes to bring the code more-inline with the ↵jeresig2009-12-211-9/+20
| | | | jQuery Core Style Guideline.
* Tweaked the syntax of withinElement a bit.jeresig2009-12-211-4/+11
|
* Tweaked a couple cases where == was used instead of ===.jeresig2009-12-211-2/+2
|
* Make sure that the beforeactivate event isn't accidentally prevented.Alexander Farkas2009-12-211-1/+1
|
* Stop trying to emulate the focus/blur event in IE, doesn't work as one might ↵Jörn Zaefferer2009-12-211-16/+15
| | | | expect, anyway. Instead, implement the focusin/focusout events in all other browsers - which creates a much better parity across all browsers. Uses event capturing instead of bubbling to make it happen. Thanks to Alexander for the recommendation and to Joern Zaefferer for the original focus/blur delegation code.
* Used the patch from Alexander as the basis for a rewrite of the IE change ↵Alexander Farkas2009-12-211-35/+71
| | | | event logic. Now has full parity with the regular change event in other browsers: Works with regular bind, works better with multiple selects, works as a regular change event (note test suite changes), works with readonly/disabled inputs, and much more. The original patch had a number of problems, including firing the change event too many times, not bubblinb properly, and not handling clicks on multi-selects properly - that should all be fixed now. Thanks Alexander for the patch pushing in the right direction.
* Make sure that we don't bind the onunload event in Opera.jeresig2009-12-181-1/+1
|
* No need to use the conditional comment for binding the onunload event in IE.jeresig2009-12-181-11/+11
|
* Retooled the arguments.callee-related changes in ↵jeresig2009-12-161-2/+9
| | | | 98ce35d52b17a033822f31d8a36232222d0d365e to avoid re-declarations where possible.
* No need to use jQuery's event system for binding the onunload event in IE.jeresig2009-12-161-3/+2
|
* Fixed typo from commit 542099a278e79dce38e814e7e7b448a1b73df82f.John Resig2009-12-111-1/+1
|