aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Make unit tests friendly to Closure Compiler. Closes gh-845.Chad Killingsworth2012-07-051-46/+46
| | | | | | Conflicts: test/unit/effects.js test/unit/offset.js
* UPDATE SIZZLE: completed rewrite for better things!timmywil2012-07-021-7/+7
| | | | Remove reverse in traversing for comma selectors. Sizzle's handling of commas is now more consistent.
* Fix #11382. #11764. Only prevent click events on disabled elements.Dave Methvin2012-06-271-5/+14
| | | | | | We don't want a disabled link/button to register delegated clicks, but we do want events like mouseover or custom events. This is a compromise, there is no perfect solution. Well, the browsers could be consistent about direct vs. delegated events but *that's* not gonna happen.
* Fix #11315. Selector for .on() is relative to delegateTarget.Dave Methvin2012-06-271-0/+14
| | | | This fixes a regresssion from 1.6.4. Be aware that nearly every place that this bug comes into play, the selector in use is incredibly inefficient.
* Add a semicolon in unit test; this pull predated lint mandate.Dave Methvin2012-06-221-1/+1
|
* Fix #11925, Pass eventHandle to special.teardown. Closes gh-831.Timo Tijhof2012-06-221-0/+15
| | | | | * Added unit test to confirm. The third assertion fails without the fix in ./src/event.js
* Unit tests are linted and passing.Rick Waldron2012-06-211-63/+73
|
* Move quickIs to Sizzle; Remove duplicate id matching in init; Added selector ↵timmywil2012-06-181-44/+0
| | | | caching to Sizzle. Fixes #11826.
* Fix #11857. Modularize css.js, add dependency management. Closes gh-816.Mike Sherov2012-06-101-3/+7
| | | | See the pull request for more info on the dependency management details.
* Fix #11796. Preserve oldIE change delegation on clone. Closes gh-789.Jason Moon2012-05-221-0/+32
|
* Followup #11649, clean up events in unit test.Dave Methvin2012-05-181-0/+1
|
* Fix #11649. Preserve oldIE submit flag when cloning, closes gh-772.Jason Moon2012-05-181-0/+35
|
* Fix #11621, $(document).trigger() must bubble to window.Dave Methvin2012-05-121-1/+4
|
* Transform $.bindReady into $.ready.promise. It is now possible to use ↵jaubourg2012-05-061-0/+5
| | | | $.ready.promise or $.when( $.ready ) to get the ready promise. Costs *1* byte min/gzipped. Unit test added.
* remove jQuery.quickReady, save bytes, style nits in testsMike Sherov2012-05-041-8/+5
|
* Fix #10067. Create jQuery.quickReady; closes gh-736.Mike Sherov2012-04-231-0/+20
| | | | Allows us to get to the ready state sooner by not waiting for iframes to load. If that causes backcompat pain, use `jQuery.quickReady = false` as prescribed by your developer.
* Make test async to please Opera 11.1; supplements #11500Rick Waldron2012-04-161-1/+2
|
* Fix #11500. Allow triggered, simulated change events.Rick Waldron2012-04-101-0/+10
|
* Fix #11049. Let bubbling submit be cancellable in oldIE.Dave Methvin2012-03-061-3/+41
|
* Fix #11076. If .clone() won't delegate, we must remediate.Dave Methvin2012-01-281-0/+23
| | | | 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.
* Fix #8165: Ignore events bubbling through disabled elements.Dave Methvin2012-01-191-2/+12
| | | | 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-3/+19
|
* Fix #11145: Harden dispatch against a form-aliased "disabled" propertyRichard Gibson2012-01-111-10/+23
|
* Fix #11021. There should be no mangling of the "hover" namespace.Dave Methvin2011-12-131-1/+5
|
* Fix #10984. Use origType when unbinding via the event object.Dave Methvin2011-12-131-1/+10
|
* Fix #10844. Harden quickIs() against form-aliasing of the id property.Dave Methvin2011-11-211-0/+23
|
* Fix #10791. SVG clamors for special treatment of its class names.Dave Methvin2011-11-161-0/+25
|
* Allow mapped types to be removed by a namespace-only type name.Dave Methvin2011-11-151-2/+11
|
* Fix #10794. .triggerHandler() should not .preventDefault().Dave Methvin2011-11-151-1/+8
| | | | This also provides a resolution for #10699.
* Pre-focus the element so the browser won't fire focus while we're faking it.Dave Methvin2011-11-131-0/+3
| | | | At this point the unit test is only testing our ability to fake-fire focusin the right way. These machinations are related to the problem in #6705.
* Disable DOM focusin test since it can't really work in the swarm.Dave Methvin2011-11-131-4/+5
|
* Catch more cases where special events were incorrectly removed.Dave Methvin2011-11-131-7/+24
| | | | 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-7/+42
|
* Ensure the hover event doesn't match hovercraft. Witchcraft, maybe.Dave Methvin2011-11-101-0/+3
|
* Fix #10705. Don't bail too soon in `.off()` event string processing.Dave Methvin2011-11-091-0/+24
|
* Fix #10712. Deal with focus/blur morphing to focusin/focusout.Dave Methvin2011-11-081-3/+2
|
* Fix #10717, .trigger("load") on images can't bubble to window.Dave Methvin2011-11-081-0/+19
| | | | This means no manually triggered event named "load" can bubble, so avoid that name for delegated custom events.
* Fix #10701, .preventDefault if an inline handler returns false.Dave Methvin2011-11-071-0/+12
| | | | Baby unicorns are slapped each time you use inline handlers, so do it sparingly.
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-320/+320
| | | | deprecated in QUnit.
* Add a way to fire native events using dispatchEvent/fireEvent in ↵timmywil2011-10-281-22/+24
| | | | testinit.js; fixes failing click test in FF3.6
* DRY the hover pseudo-event, get the type right, allow override.Dave Methvin2011-10-271-1/+21
| | | | 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-5/+5
|
* Remove attribute match from quickIsDave Methvin2011-10-241-18/+7
| | | | 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-0/+8
|
* Fix #10563. Ensure event.currentTarget==this if delegated.Dave Methvin2011-10-241-17/+21
| | | | Now, event.delegateTarget is always the element where the event was handled, regardless of whether delegated handlers are attached.
* Make jQuery().off(event) work for delegated events.Dave Methvin2011-10-241-0/+14
| | | | 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.
* Make event.currentTarget the delegate node, always.Dave Methvin2011-10-241-2/+2
| | | | 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-0/+16
|
* Fix #10489. Disconnected elements don't bubble to document.Dave Methvin2011-10-131-13/+38
|
* Tweak live-blur() test to silence a IE8 swarm fail.Dave Methvin2011-10-111-9/+8
|