aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Fixes #10477. Get `.off(type, null, fn)` right.Dave Methvin2011-10-111-2/+13
|
* Rename jQuery.event.propHooks to .fixHooks.Dave Methvin2011-10-051-12/+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/+4
| | | | It's already set in jQuery.Event, and copying it can clobber values set by the caller, e.g., the UI widget factory.
* Restore original click prop hookRick Waldron2011-09-261-0/+1
|
* Fixed tests to run in IE9Rick Waldron2011-09-261-16/+19
|
* Minor cleanups to code. Futile effort to get IE to pass the unit test.Dave Methvin2011-09-251-3/+2
|
* propHooks now an object with `props` array and `filter` function.Dave Methvin2011-09-251-68/+32
| | | | 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-4/+63
|\ | | | | | | | | | | | | | | fix-8789-rwldrn-fix Conflicts: src/event.js test/unit/event.js
| * Adds implementation tests for jQuery.event.propHooks #8789Rick Waldron2011-09-201-6/+65
| |
* | Remove the rarely-used pseudos from quickis.htmlDave Methvin2011-09-211-10/+7
|/ | | | The cutting will continue until file size is improved.
* Fix #9901, verified by this unit test.Dave Methvin2011-09-201-1/+3
|
* Rework #1486 patch to avoid `try/catch` and look for hidden elements by ↵Dave Methvin2011-09-191-0/+25
| | | | `.offsetWidth`. Unit test currently disabled due to Chrome bug.
* Fixes for IE8. Avoid killer recursion in special events during removal. Use ↵Dave Methvin2011-09-191-3/+12
| | | | q instead of quote in unit tests.
* Rework the special events interface to add handle and trigger hooks. Modify ↵Dave Methvin2011-09-191-0/+3
| | | | IE change/submit special events to take advantage of them. Rewrite mouseover/enter code as special events rather than inline code. In the event unit test, set a tabindex on the div element and focus it first to justify a legitimate blur event.
* Fixes #8858. Pass the .trigger(..., data) to the event.special._default method.Dave Methvin2011-09-191-5/+6
|
* Add unit tests for quickIs cases and fix the regexp as a result.Dave Methvin2011-09-191-5/+37
|
* Cleanup for on/off unit test.Dave Methvin2011-09-191-4/+5
|
* jQuery 1.7 event work:Dave Methvin2011-09-191-2/+110
| | | | | | | | Add .on() and .off() methods. Write existing methods in terms of on/off. Rewrite delegated handling to remove "live" event. Fix existing code for jQuery style guide. Fix existing bug in unit tests calling .undelegate()
* Fix bad calls to .undelegate().Dave Methvin2011-09-191-11/+4
| | | | Remove two tests that assume "live" data structure.
* Fix #10208. Check for `button` as well as `input` when performing the #7071 ↵Dave Methvin2011-09-071-1/+5
| | | | VML crash workaround for IE special-events submit code.
* Removes empty, duplicate named test block. Fixes #9914Rick Waldron2011-07-261-5/+2
|
* Landing pull request 397. withinElement rewrite in event. Fixes #6234, ↵rwldrn2011-06-141-0/+37
| | | | | | | | | | #9357, #9447. More Details: - https://github.com/jquery/jquery/pull/397 - http://bugs.jquery.com/ticket/6234 - http://bugs.jquery.com/ticket/9357 - http://bugs.jquery.com/ticket/9447
* Landing pull request 377. Check custom data != null(undefined), allows zero; ↵Rick Waldron2011-05-161-0/+20
| | | | | | | | Fixes #9285. More Details: - https://github.com/jquery/jquery/pull/377 - http://bugs.jquery.com/ticket/9285
* Restored /g flag to rspaces; Adds unit tests; Supplements #9008Rick Waldron2011-04-281-0/+16
|
* Fix live mouseenter and mouseleave binding so they can be activated by ↵Brian Brennan2011-04-171-2/+19
| | | | triggers. Fixes #6514.
* Switch QUnit div from depreceted #main to #qunit-fixturetimmywil2011-04-171-19/+19
|
* Add in unit tests for #6993.John Resig2011-04-161-1/+7
|
* Fix test suite fail in IE6/7 on event:undelegate - was failing an if where ↵timmywil2011-04-131-2/+2
| | | | it shouldn't
* Merge branch 'fix_suite_fails' of https://github.com/timmywil/jquery into ↵Dave Methvin2011-04-121-0/+2
|\ | | | | | | timmywil-fix_suite_fails
| * VML.type test was causing multiple test suite fails, fix attributes.js fail ↵timmywil2011-04-121-0/+2
| | | | | | | | in IE6 where the val(String/Number) tests were interfering with the val(Function) tests
* | Followup to #8753. Modify new Event constructor signature to ↵Dave Methvin2011-04-121-2/+2
|/ | | | jQuery.event(type, props), which can be exploited by jQuery.event.trigger as well.
* Accessing the 'type' property on VML elements fails on IE. Fixes #7071.John Firebaugh2011-04-121-0/+3
|
* revert last commitlouisremi2011-04-121-1/+1
|
* switch double quotes with single quoteslouisremi2011-04-121-1/+1
|
* merge with master and resolve more conflictslouisremi2011-04-121-0/+21
|\
| * Merge branch '8777' of https://github.com/rwldrn/jquery into rwldrn-8777jeresig2011-04-111-0/+21
| |\ | | | | | | | | | | | | Conflicts: src/event.js
| | * Ticket #8777 undelegate by namespacerwldrn2011-04-051-6/+28
| | |
* | | third batchlouisremi2011-04-121-90/+90
|/ /
* | Merge branch 'eventprops.1.6final' of https://github.com/rwldrn/jquery into ↵jeresig2011-04-101-0/+22
|\ \ | | | | | | | | | | | | | | | | | | rwldrn-eventprops.1.6final Conflicts: test/unit/event.js