aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
Commit message (Collapse)AuthorAgeFilesLines
* Remove attribute match from quickIsDave Methvin2011-10-241-6/+5
| | | | As @timmywil points out, attributes and properties are confused by IE6/7. This commit also reworks the unit test case to do a better job of checking className matches.
* Fix #10567. Make sure quickIs matches correct class name.Dave Methvin2011-10-241-1/+1
|
* Fix #10563. Ensure event.currentTarget==this if delegated.Dave Methvin2011-10-241-5/+5
| | | | Now, event.delegateTarget is always the element where the event was handled, regardless of whether delegated handlers are attached.
* Stop global event bubbling using onlyHandlers flag.Dave Methvin2011-10-241-2/+1
|
* Make jQuery().off(event) work for delegated events.Dave Methvin2011-10-241-11/+11
| | | | Logic to handle detaching by event was in both .off() and jQuery.event.remove; now it's only in .off(). It's a bit of a strange case since the event object (not the jQuery set) specifies the element.
* Fold dispatch function into main event dispatch.Dave Methvin2011-10-241-37/+30
|
* Don't add an empty list of handlers.Dave Methvin2011-10-241-2/+2
|
* Make event.currentTarget the delegate node, always.Dave Methvin2011-10-241-12/+6
| | | | This lets us use currentTarget for its intended use and avoids creating a non-standard delegateTarget property.
* Don't run direct handlers if delegate did .stopPropagation().Dave Methvin2011-10-241-1/+1
|
* Landing pull request 554. #10531: Remove `layerX` and `layerY` Fixes #10531.Mathias Bynens2011-10-221-1/+1
| | | | | | More Details: - https://github.com/jquery/jquery/pull/554 - http://bugs.jquery.com/ticket/10531
* Fix #10489. Disconnected elements don't bubble to document.Dave Methvin2011-10-131-23/+27
|
* Fixes #10477. Get `.off(type, null, fn)` right.Dave Methvin2011-10-111-1/+1
|
* Fix focus/blur unit test issues. Reopens #6705.Dave Methvin2011-10-101-13/+4
| | | | | | | In the event refactor, I tried to have the focus/blur events trigger the focus/blur plus focusin/focusout events but this doesn't handle various real-world cases that expect a trigger()ed jQuery handler to run and be able to pass data even if the native event shouldn't fire. This reopens a bug that causes a double-fire of inline event handlers.
* Fix #10468. Remove jQuery.event.proxy and jQuery.event.guid.Dave Methvin2011-10-101-6/+0
| | | | These were deprecated several versions ago and have always been undocumented. Use jQuery.proxy() and jQuery.guid instead.
* Minor fix in events; undeclared var from last committimmywil2011-10-071-4/+4
|
* Additional nitsRick Waldron2011-10-061-1/+1
|
* Style sweepRick Waldron2011-10-061-26/+36
|
* Rename jQuery.event.propHooks to .fixHooks.Dave Methvin2011-10-051-6/+6
| | | | We already have jQuery.propHooks for the .prop() method, so using the same name for unrelated functionality on a sub-namespace is crazy talk. Since the method involved is jQuery.event.fix(), this will hopefully tie them together. Oh, and it's shorter.
* Fix #10375. Don't put `type` in jQuery.event.propsDave Methvin2011-09-291-1/+1
| | | | It's already set in jQuery.Event, and copying it can clobber values set by the caller, e.g., the UI widget factory.
* Expose jQuery.event.simulate for use by special event handlers.Dave Methvin2011-09-281-23/+23
|
* Minor cleanups to code. Futile effort to get IE to pass the unit test.Dave Methvin2011-09-251-4/+5
|
* propHooks now an object with `props` array and `filter` function.Dave Methvin2011-09-251-77/+63
| | | | Use the originalEvent to grab properties in filter functions since they often won't have been copied to event. Mark a few current props in the main jQuery.event.props list as deprecated, they aren't supported across all browsers.
* Merge branch '8789-fun-with-fix' of https://github.com/rwldrn/jquery into ↵Dave Methvin2011-09-241-44/+91
|\ | | | | | | | | | | | | | | fix-8789-rwldrn-fix Conflicts: src/event.js test/unit/event.js
| * Moves mouse properties to mousePropsRick Waldron2011-09-231-1/+2
| |
| * current stateRick Waldron2011-09-221-5/+14
| |
| * Removes early return loop, must copy propertiesRick Waldron2011-09-221-5/+0
| |
| * Shortcircuit fix if possibleRick Waldron2011-09-221-0/+5
| |
| * More ref localizationRick Waldron2011-09-221-10/+15
| |
| * Remove unnec. empty lineRick Waldron2011-09-221-1/+0
| |
| * More reference cachingRick Waldron2011-09-221-2/+4
| |
| * Cache reference to propHook lookup and resultRick Waldron2011-09-221-3/+6
| |
| * Restore this.propHooks => jQuery.event.propHooks for better gzip ↵Rick Waldron2011-09-221-2/+2
| | | | | | | | compression. Thanks gnarf
| * Adds notes re: crash status of fix conditionsRick Waldron2011-09-221-1/+2
| |
| * Moves key event fixes to own even prop hook defsRick Waldron2011-09-221-14/+23
| |
| * jQuery.event.propHooks => this.propHooks where possibleRick Waldron2011-09-221-2/+2
| |
| * Removes pageX pageY from prop listRick Waldron2011-09-201-1/+1
| |
| * Updates rmouseEventRick Waldron2011-09-201-1/+1
| |
| * Implements jQuery.event.propHooks. Fixes #8789Rick Waldron2011-09-201-30/+51
| |
* | Fix #7061. Lazy-attach to the genuine submit event for delegation.Dave Methvin2011-09-211-8/+19
| | | | | | | | Avoids the problems that arise when we try to trigger submit behavior at clicky-time.
* | Remove the rarely-used pseudos from quickis.htmlDave Methvin2011-09-211-11/+4
| | | | | | | | The cutting will continue until file size is improved.
* | Allow IE .trigger()ed events through on a check/radio.Dave Methvin2011-09-201-1/+2
| |
* | Don't fire change on an already-selected radio.Dave Methvin2011-09-201-4/+12
| | | | | | | | Thanks to Brandon Wallace (@bman654) for his code review. Also tweaks delegatetest.html output.
* | Fix #6593. Don't let onchange trigger twice for elements in IE.Dave Methvin2011-09-201-97/+41
|/ | | | This is a major revamp of the approach we use for IE change events. Instead of trying to track and simulate, we lazy-attach real change events to inputs and have only one workaround for check/radio. Somewhat more resource intensive but closes several sticky bugs. The onchange is still triggered for check/radio on blur but no double-trigger on any element occurs.
* Landing pull request 512. 1.7 - removeData now takes space separated lists ↵Corey Frang2011-09-191-12/+10
| | | | | | | | and arrays of keys - Fixes #7323. More Details: - https://github.com/jquery/jquery/pull/512 - http://bugs.jquery.com/ticket/7323
* Landing pull request 500. 1.7 - "public data" stored as a key on "internal ↵Corey Frang2011-09-191-13/+9
| | | | | | | | data" - Fixes #8921. More Details: - https://github.com/jquery/jquery/pull/500 - http://bugs.jquery.com/ticket/8921
* Revert "Fix #6593. Don't trigger `change` event twice when simulating it on ↵Dave Methvin2011-09-191-5/+6
| | | | | | IE." Add inline handler monitor to delegatetest.html so we can see it fail. This reverts commit e77686495b6e34938575c9c0fe978cb4a0be6f05.
* Eliminate global variable "l" (!)Dave Methvin2011-09-191-1/+1
|
* Narrow the invisible-element embargo to focus/blur events.Dave Methvin2011-09-191-5/+6
|
* Update "Fix #6593. Don't trigger `change` event twice when simulating it on IE."Dave Methvin2011-09-191-8/+7
| | | | This reverts commit 3d0de29d5615c1b1d74c72e6272484961a4ba243.
* Fix #9593. Create a new jQuery.Event rather than a plain object when ↵Dave Methvin2011-09-191-2/+2
| | | | simulate()ing events. Fix a related issue with not passing src to jQuery.Event constructor.