aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix #11500. Allow triggered, simulated change events.Rick Waldron2012-04-101-2/+2
|
* Remove moot second argument from `slice.call()`Sindre Sorhus2012-04-041-1/+1
| | | | The zeroes were added to fix http://bugs.jquery.com/ticket/4942 but those browsers are no longer supported.
* Fix #8545. Plug event handling memory leak in oldIE.Oleg2012-04-041-7/+13
|
* Fix #11049. Let bubbling submit be cancellable in oldIE.Dave Methvin2012-03-061-5/+23
|
* Fix #11076. If .clone() won't delegate, we must remediate.Dave Methvin2012-01-281-0/+1
| | | | Since `jQuery.event.add` can accept a handleObj there's no need to reiterate them as args, but we *do* need to set the `selector` variable correctly.
* Add undef:true to JSHint now that it understands hoistingMike Sherov2012-01-191-3/+3
| | | | also add smarttabs:true and fix some smarttabs spacing issues
* Fix #8165: Ignore events bubbling through disabled elements.Dave Methvin2012-01-191-18/+22
| | | | Although #6911 fixed the case where event.target was disabled, it missed the case where the target was a sub-element.
* Fix #11130: Don't neglect the data arg when event-map is passed.Rick Waldron2012-01-121-2/+2
|
* Fix #11145: Harden dispatch against a form-aliased "disabled" propertyRichard Gibson2012-01-111-1/+1
|
* Fix #11021. There should be no mangling of the "hover" namespace.Dave Methvin2011-12-131-1/+1
|
* Fix #10961. XRegExp's shimmed .exec() can't handle undefined.Dave Methvin2011-12-131-1/+1
| | | | There's no reason to call quickParse if selector is falsy, so it's a minor performance optimization anyway. No change in behavior at all on our side, so no test case needed.
* Fix #10984. Use origType when unbinding via the event object.Dave Methvin2011-12-131-1/+1
|
* Fix #10692. JSLint is dead! Long live JSHint!Mike Sherov2011-12-081-3/+3
| | | | Still needs this sizzle PR: https://github.com/jquery/sizzle/pull/82
* Remove unnec .call( this... from one: function() {}. Fixes #10819Rick Waldron2011-12-061-1/+1
|
* Fix #10844. Harden quickIs() against form-aliasing of the id property.Dave Methvin2011-11-211-2/+3
|
* Fix #10791. SVG clamors for special treatment of its class names.Dave Methvin2011-11-161-1/+1
|
* Fix #10798. Don't re-bubble trigger()ed events in IE.Dave Methvin2011-11-151-4/+4
| | | | Since .trigger() already bubbles the event, we don't have to work around the non-bubbling IE events for that case.
* Allow mapped types to be removed by a namespace-only type name.Dave Methvin2011-11-151-5/+4
|
* Fix #10794. .triggerHandler() should not .preventDefault().Dave Methvin2011-11-151-11/+2
| | | | This also provides a resolution for #10699.
* Catch more cases where special events were incorrectly removed.Dave Methvin2011-11-131-20/+15
| | | | We can't take the blow-it-all-away shortcut because something in the middle of the list may be a mapped special event. On the bright side, -22!
* Avoid collateral damage when removing bindType/delegateType special events.Dave Methvin2011-11-101-15/+14
|
* Ensure the hover event doesn't match hovercraft. Witchcraft, maybe.Dave Methvin2011-11-101-1/+1
|
* The special.handle hook is for origType, not the mapped type.Dave Methvin2011-11-091-9/+7
|
* Fix #10705. Don't bail too soon in `.off()` event string processing.Dave Methvin2011-11-091-3/+3
|
* Fix #10712. Deal with focus/blur morphing to focusin/focusout.Dave Methvin2011-11-081-5/+10
|
* Fix #10717, .trigger("load") on images can't bubble to window.Dave Methvin2011-11-081-0/+5
| | | | This means no manually triggered event named "load" can bubble, so avoid that name for delegated custom events.
* Replace .bind with .on when building event aliasesDaniel Herman2011-11-071-1/+1
|
* Fix #10676. Remove `wheelDelta` from the event props list.Dave Methvin2011-11-071-1/+1
| | | | A cross-browser solution is best handled in a plugin such as jquery-mousewheel.js .
* Fix #10701, .preventDefault if an inline handler returns false.Dave Methvin2011-11-071-2/+3
| | | | Baby unicorns are slapped each time you use inline handlers, so do it sparingly.
* Since we fixed .is(POS) let's use it and save bytes.Dave Methvin2011-11-061-16/+12
| | | | Also, creates a single jQuery object and reuses it in the delegation-test loop to make it more performancy.
* Remove forever-alone regexps in event.jsDave Methvin2011-11-061-5/+1
| | | | These should have been removed during the event refactor.
* DRY the hover pseudo-event, get the type right, allow override.Dave Methvin2011-10-271-2/+5
| | | | Now with working unit test for extra correctness! If external code defines a special.hover event, we won't string-hack "hover" into "mouseenter mouseleave".
* Pass correct arg list to special._default. Thanks @mikaelkaron!Dave Methvin2011-10-271-1/+1
|
* Cleanup spacing in events.js. Fixes #10601Rick Waldron2011-10-271-9/+9
|
* Fix #10576. Add alias for jQuery.event.handle so voyeur code still works.Dave Methvin2011-10-261-0/+4
| | | | Between new 1.7 special event hooks and jQuery.event.simulate() we have a much cleaner solution than the people calling jQuery.event.handle are doing, but we shouldn't break their use of this undocumented internal interface for now.
* Fix #10575. Undeclared `matched` var hosed recursive delegate calls.Dave Methvin2011-10-251-1/+1
| | | | Thanks davidmurdoch for staying with this bug!
* 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.