aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Add .delegate() and .undelegate(). An alternative to using .live() which ↵jeresig2010-02-011-32/+411
| | | | goes from a single root and filters by the specified selectors. Should be used like do: .delegate(td, hover, someFn);. Fixes #6005.
* Provide a way to simulate default browser actions. Fixes #5973.jeresig2010-01-281-1/+6
|
* Make sure that special.add actually copies over event namespaces and data. ↵jeresig2010-01-251-0/+41
| | | | Fixes #5779 and #5834.
* Make sure multiple bound events have their namespaces and data maintained. ↵jeresig2010-01-251-0/+34
| | | | Fixes #3549.
* Make sure that it's possible to preventDefault natively-triggered (submit, ↵jeresig2010-01-251-1/+29
| | | | focus, blur, click) events. Fixes #5695.
* Make sure that .die() with no args works. Fixes #5789.jeresig2010-01-231-1/+16
|
* Added support for multiple live event handlers, live hover, and live ↵Irae Brasil2010-01-231-0/+14
| | | | focus/blur (mapped to focusin/focusout). Fixes #5804, #5801, #5852.
* Make sure non-left-click events don't bubble. Fixes #3861.Irae Brasil2010-01-231-1/+8
|
* Revert "Adding in backwards-compatiblity support for ↵jeresig2010-01-111-13/+0
| | | | | | jQuery().bind/unbind/trigger - and immediately deprecating it. Please explicitly use jQuery(document) in your code." This reverts commit e9d5947b4abbc052046585227892da0adcd56caf.
* Adding in backwards-compatiblity support for jQuery().bind/unbind/trigger - ↵jeresig2010-01-061-0/+13
| | | | and immediately deprecating it. Please explicitly use jQuery(document) in your code.
* Remove the .bind(name, fn, thisObject) and promote jQuery.event.proxy() to ↵jeresig2009-12-311-5/+5
| | | | jQuery.proxy() as alternative to handling scoping on callbacks. Fixes #5736.
* Used the patch from Alexander as the basis for a rewrite of the IE change ↵Alexander Farkas2009-12-211-27/+9
| | | | 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.
* Fixed problems with removing live events. Fixes #4894.John Resig2009-12-091-1/+38
|
* Adding in support for bubbling submit and change events, thanks to the patch ↵Justin Meyer2009-12-041-8/+131
| | | | by Justin Meyer. Includes a delegation test suite for manually testing to see if the events work as intended.
* Simplified a selector in the .live() tests.jeresig2009-11-301-2/+2
|
* Tweaked the live test to be a bit simpler.jeresig2009-11-301-3/+5
|
* Corrected RegExp to match event namespaces. Fixes #5303.Robert Katic2009-11-261-0/+4
|
* Making sure that you can bind multiple toggles to a single element without ↵Mr Speaker2009-11-111-1/+17
| | | | problems. Thanks to 'Mr Speaker' for the original patch. Fixes #5274.
* Probably not the optimal solution, but tests pass.Yehuda Katz2009-09-161-0/+16
|
* jquery event: closes #5250. bind(), unbind() and one() support Object ↵Ariel Flesler2009-09-161-0/+53
| | | | Literals (needs some refactor though)
* testrunner: focus & blur events could fail if the window isn't focusedAriel Flesler2009-09-151-11/+17
|
* testrunner: resetting the scroll position after focusing a fieldAriel Flesler2009-09-141-0/+1
|
* jquery event: fixes #4989. blur and focus events now bubble and can be ↵Ariel Flesler2009-09-141-0/+30
| | | | handled using live().
* fix for #3533, triggering an event with a colon in the name on a table no ↵Brandon Aaron2009-06-171-1/+9
| | | | longer throws an error in IE
* .bind() now accepts an optional thisObject as the last argument which is ↵Brandon Aaron2009-05-071-1/+32
| | | | used to change the value of this in event callbacks. fixes #3699
* fix for #4234. hover can take one function to use for both enter and leave.Brandon Aaron2009-05-061-0/+18
|
* unit tests for using jQuery events on non-dom elements. fixes #3439. thanks ↵Brandon Aaron2009-05-041-0/+21
| | | | morgan
* live event handlers now receive data from trigger, fixes #4532, thanks nbubnaBrandon Aaron2009-04-301-1/+5
|
* refactor specialAll into add and remove hooks for existing special events, ↵Brandon Aaron2009-04-301-1/+4
| | | | live now accepts optional data param like bind, fixes #4612 and #4613, thanks to Mike Helgeson
* enable test for binding events cross-frame that was fixed in r6316Brandon Aaron2009-04-291-9/+5
|
* .unbind() without any arguments now also unbinds namespaced events. fixes ↵Brandon Aaron2009-04-291-2/+7
| | | | #4609 and #4241
* fix for #4189, live/die now work with contexts other than just documentBrandon Aaron2009-03-201-1/+19
|
* jquery event: Fixing event.currentTarget for live().Ariel Flesler2009-02-231-1/+12
|
* Changed the currentTarget test - no need to test the native event triggering ↵John Resig2009-02-171-3/+1
| | | | for this test.
* testrunner: MiscAriel Flesler2009-02-171-0/+3
|
* jquery event: closes #4033. e.currentTarget wasn't being enforced for native ↵Ariel Flesler2009-02-171-0/+14
| | | | events (IE doesn't have it)
* Fixed bubbling of live events (if an inner element handles an event first - ↵John Resig2009-02-091-1/+24
| | | | and stops progatation - then the parent event doesn't encounter the event). Thanks to Irae for the patch. Fixes bug #3980.
* Focused support of .live(). stopPropagation and stopImmediatePropagation are ↵John Resig2009-01-201-1/+10
| | | | not supported - and do not do what the use would expect.
* Landed a fix for when a DOM element gets accidentally removed by another ↵John Resig2009-01-101-1/+15
| | | | live event handler. Thanks to Irae for the patches. Fixed #3820.
* Didn't get specific enough with the proxy guid, fixes #3787.John Resig2009-01-091-2/+15
|
* Made it so that you can bind a single function to multiple .live() ↵John Resig2009-01-091-1/+26
| | | | | | | selectors. Additionally, simplified the proxy code to provide a default proxy function. Fixes #3787.
* testrunner: refactored unbind's tests. Including one for #3538, passing ↵Ariel Flesler2009-01-081-37/+66
| | | | since last commit.
* Disabled an extra event binding.John Resig2009-01-051-1/+3
|
* jquery event: closes #3772. The extra function on $.event.trigger isn't ↵Ariel Flesler2009-01-021-38/+1
| | | | supported anymore.
* jquery event: Ariel Flesler2008-12-311-31/+72
| | | | | | | | | | | * event objects have isDefaultPrevented, isPropagationStopped and isImmediatePropagationStopped methods. * Removed donative and dohandlers from $.trigger * event.result carries the last returned data from a handler(not undefined). * $.trigger doesn't keep bubbling if stopPropagation() is called. * Same event object is used all along for global trigger * Fixed the bug where target doesn't change when triggering on many elements. * The data array on $.trigger was accumulating objects as it bubbles. testrunner: adding more tests
* Made sure that return false works in .live() along with the event object ↵John Resig2008-12-301-1/+15
| | | | being passed in as the first argument.
* jquery event: jQuery.Event can be instantiated without the 'new' keyword.Ariel Flesler2008-12-291-2/+7
|
* jquery event: Closes #3662. Adds a jQuery.Event class. Makes trigger and fix ↵Ariel Flesler2008-12-251-19/+33
| | | | simpler. Adds currentTarget attribute to event objects. Event object isn't passed as part of data.
* Added a new liveQuery/event delegation hybrid method: .live and .die. Easily ↵John Resig2008-12-221-0/+66
| | | | adapts event delegation to the jQuery style. $("div").live("click", fn); $("div > #foo").live("submit", fn); $("div").die("click");
* Made sure that the correct event.taget is being used in event bubbling.John Resig2008-12-221-4/+4
|