aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
Commit message (Collapse)AuthorAgeFilesLines
...
* only copy guid from handler to modifiedHandler if it does not already have oneBrandon Aaron2009-05-011-1/+1
|
* live event handlers now receive data from trigger, fixes #4532, thanks nbubnaBrandon Aaron2009-04-301-2/+2
|
* refactor specialAll into add and remove hooks for existing special events, ↵Brandon Aaron2009-04-301-41/+34
| | | | live now accepts optional data param like bind, fixes #4612 and #4613, thanks to Mike Helgeson
* event clean upBrandon Aaron2009-04-301-147/+200
|
* .unbind() without any arguments now also unbinds namespaced events. fixes ↵Brandon Aaron2009-04-291-2/+3
| | | | #4609 and #4241
* fix for #4268. bind now works with iframe windows. thanks tr4nslatorBrandon Aaron2009-04-221-1/+1
|
* fix for #2911Brandon Aaron2009-04-221-1/+1
|
* remove trailing spacesBrandon Aaron2009-03-231-22/+22
|
* fix for #4189, live/die now work with contexts other than just documentBrandon Aaron2009-03-201-2/+2
|
* Added some more information to the unload event cleanup.John Resig2009-03-191-0/+3
|
* No longer use arguments.callee or RegExp (use new RegExp, instead) for ES ↵John Resig2009-02-261-4/+4
| | | | 3.1 and Caja compatibility. Fixes jQuery bug #4251.
* jquery event: Fixing event.currentTarget for live().Ariel Flesler2009-02-231-0/+1
|
* jquery event: closes #4033. e.currentTarget wasn't being enforced for native ↵Ariel Flesler2009-02-171-1/+2
| | | | events (IE doesn't have it)
* Fixed bubbling of live events (if an inner element handles an event first - ↵John Resig2009-02-091-1/+5
| | | | and stops progatation - then the parent event doesn't encounter the event). Thanks to Irae for the patch. Fixes bug #3980.
* Added a fix, suggested by Diego, for IE firing the ready event too late. ↵John Resig2009-01-281-1/+1
| | | | Fixes bug #3988.
* Focused support of .live(). stopPropagation and stopImmediatePropagation are ↵John Resig2009-01-201-3/+2
| | | | not supported - and do not do what the use would expect.
* jquery event: closes #3843. Some events' timeStamp are wrong on Firefox, we ↵Ariel Flesler2009-01-191-3/+3
| | | | don't rely on the native value anymore. timeStamp reflects object creation, not last event triggered.
* Made the IE frameElement check more explicit. Fixes #3880.John Resig2009-01-171-1/+1
|
* Landed a fix for when a DOM element gets accidentally removed by another ↵John Resig2009-01-101-4/+12
| | | | 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/+2
|
* Made it so that you can bind a single function to multiple .live() ↵John Resig2009-01-091-7/+9
| | | | | | | selectors. Additionally, simplified the proxy code to provide a default proxy function. Fixes #3787.
* jquery event: Fixes #3538. unbind on many events was failing.Ariel Flesler2009-01-081-3/+3
|
* The triggered flag was being set too early, which was preventing bubbling ↵John Resig2009-01-051-2/+2
| | | | | | | form working when a native event existed.
* jquery event: Removed a needless if (old code)Ariel Flesler2009-01-051-11/+9
|
* .live("div div") was failing due to the extra space in the selector (which ↵John Resig2009-01-041-1/+1
| | | | conflicted with multiple event binding in .bind).
* jquery event: event.stopImmediatePropagation() stops live handlers as well.Ariel Flesler2009-01-041-1/+1
|
* jquery event: Misc, removed a commented line from last commit.Ariel Flesler2009-01-021-6/+2
|
* jquery event: Now using an internal argument to detect if bubbling on ↵Ariel Flesler2009-01-021-64/+59
| | | | | | $.event.trigger. The other would fail when it receives an event object with target. Also, the target isn't nulled anymore. In addition, there was a lot of code running O(n) during bubbling while not needed.
* jquery event: closes #3772. The extra function on $.event.trigger isn't ↵Ariel Flesler2009-01-021-14/+5
| | | | supported anymore.
* jquery event: event.timeStamp wasn't being created when passing just the ↵Ariel Flesler2008-12-311-5/+6
| | | | | | type to the constructor. Misc: Simplified the readyList execution code.
* jquery event: Ariel Flesler2008-12-311-53/+80
| | | | | | | | | | | * 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
* jquery event: removed the argument dohandlers from $.trigger. Uses another ↵Ariel Flesler2008-12-301-16/+13
| | | | approach.
* Made sure that return false works in .live() along with the event object ↵John Resig2008-12-301-3/+7
| | | | being passed in as the first argument.
* jquery event: jQuery.Event can be instantiated without the 'new' keyword.Ariel Flesler2008-12-291-3/+7
|
* jquery event: Closes #3662. Adds a jQuery.Event class. Makes trigger and fix ↵Ariel Flesler2008-12-251-63/+74
| | | | simpler. Adds currentTarget attribute to event objects. Event object isn't passed as part of data.
* Disabled native event triggering (and, thus, bubbling) for global events.John Resig2008-12-221-1/+1
|
* Added a new liveQuery/event delegation hybrid method: .live and .die. Easily ↵John Resig2008-12-221-21/+75
| | | | adapts event delegation to the jQuery style. $("div").live("click", fn); $("div > #foo").live("submit", fn); $("div").die("click");
* Added support for bubbling triggered events.John Resig2008-12-221-0/+6
|
* Added the new jQuery.support object and removed all uses of jQuery.browser ↵John Resig2008-12-211-33/+31
| | | | from within jQuery itself (while simultaneously deprecating the use of jQuery.browser).
* Fixed a problem with multi-namespaced events not targetting the correct ↵John Resig2008-12-191-3/+5
| | | | functions for execution.
* Removing remaining strict-mode warnings.John Resig2008-12-191-2/+3
|
* Added support for multiple-namespaced events (in bind, trigger, and unbind).John Resig2008-12-191-8/+9
|
* Simplifying the DOM ready code, no longer attempting to handle stylesheet ↵John Resig2008-12-191-40/+14
| | | | loading. Closes #2614.
* Standardized the type checks across core. isFunction and isArray now use ↵John Resig2008-11-171-4/+4
| | | | Object.prototype.toString to verify the type, .constructor use was removed in favor of typeof, typeof checks now use ===, undefined checks use === undefined. All of this is outlined in the new style guidelines: http://docs.jquery.com/JQuery_Core_Style_Guidelines#Type_Checks. Fixes bug #3618.
* Landed the patch, by Diego, that 1) Removes browser sniffing from the ready ↵John Resig2008-11-121-15/+27
| | | | code and 2) Provides some form of fallback DOM Ready for Iframes in IE. Closes #2614.
* jquery event: extra for #3498. Using the new mouse(enter|leave) shortcuts in ↵Ariel Flesler2008-10-221-1/+1
| | | | $.fn.hover.
* jquery event: closes #3498, adding $.fn.mouseenter & $.fn.mouseleave.Ariel Flesler2008-10-211-2/+2
|
* jquery event: closes #3355. Added stopImmediatePropagation() to events.Ariel Flesler2008-10-181-1/+13
|
* jquery event: closes #3127. jQuery.event.special built-in methods were ↵Ariel Flesler2008-07-281-62/+37
| | | | optimized. The mouse(enter|leave) special case is only added for non-IE browsers.Thanks to Mike Helgeson for his help.
* jquery event: closes #3112. It wasn't possible to bind 'data' to special events.Ariel Flesler2008-07-091-5/+5
|