aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Event: remove guard for falsy handler argument of jQuery#on method"Timmy Willison2016-01-071-0/+2
| | | | This reverts commit fac67a984268ef8f7de952666fda6d8d32754f5f.
* Revert "Misc: Drop support for older browsers; update support comments"Timmy Willison2016-01-061-3/+2
| | | | This reverts commit 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278.
* Event: Fix delegated radio events when arrow keys are usedDave Methvin2015-10-251-3/+4
| | | | | | | Fixes gh-2343, gh-2410 Close gh-2617 (cherry picked from commit c82a6685bb964627e27008e298f93ea81218265b)
* Tests:Docs: Fix various typosGary Ye2015-10-121-1/+1
| | | | | | | | | | | | | * Changes "baar" to "bar" when used with "foo" in readme and comments of js files * mousenter -> mouseenter Thanks @garysye, @KimTaehee Cherry-picked from 03eaadb131df925d1072afd2496ee3b41d2f1fc6 Closes gh-2613 Closes gh-2601
* Event: Use form prop so that a propHook can be usedAdrian Olek2015-09-141-1/+6
| | | | | Fixes gh-2332 Closes gh-2575
* Data: Don't expose jQuery.acceptDataJason Bedard2015-09-081-3/+4
| | | | | | | | jQuery.acceptData is an undocumented internal API that shouldn't be exposed. (cherry-picked from 224271982eb9cd351d7db1b38c740b4e927e6f97) Fixes gh-2555
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-59/+94
| | | | | Ref 10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 Fixes gh-2056
* Core: Support non-browser environmentsMichał Gołębiowski2015-08-161-1/+2
| | | | | | | | | | | | Fixes gh-2133 Fixes gh-2501 Closes gh-2504 Refs gh-1950 Refs gh-1949 Refs gh-2397 Refs gh-1537 Refs gh-2504 Refs 842958e7aecd0d75a7ee9e2aaec83457701aa2f3
* Event: Reduce differences from masterRichard Gibson2015-08-101-7/+6
|
* Event: Update support comments for mouseenter/mouseleave implementationMichał Gołębiowski2015-07-271-7/+4
| | | | | | | | | | | Custom mouseenter/mouseleave implementation was needed because of: 1. Safari 6 not implementing mouseenter/mouseleave at all. 2. Chrome sending mouseenter too often. The second issue has been fixed in Chrome but exists now in Safari 7 (it's fixed in Safari 8) so we have to keep it for now, unfortunately. (cherry-picked from 2792845534e36c39dbb9c8369ed96aaefa560081)
* Core: Adjust comments & tests after dropping Safari 6 supportMichał Gołębiowski2015-07-271-1/+1
| | | | | | | | | | Support comments that mentioned only Safari < 7 were checked & updated to account for bugs existing in newer versions as well; Safari 6 support test results were removed. (cherry-picked from 93bee4701d14202045a88aab156da0daf9418430) Refs gh-2482
* Event: Remove an internal argument to the on methodMichał Gołębiowski2015-06-141-51/+55
| | | | | | (cherry-picked from 04a29696e5b176ac66401120e433d52425222f0f) Refs gh-2301
* Event: correct an unfinished commentOleg Gaidarenko2015-06-051-1/+1
|
* Event: remove preDispatch hook & simplify "simulate" signatureOleg Gaidarenko2015-06-051-11/+9
| | | | Ref 3655c4e1908cc3ee49487e7e26e8cfca9fe8146d
* Event: improve originalEvent hackOleg Gaidarenko2015-05-291-6/+12
| | | | | Ref 6df669f0fb87cd9975a18bf6bbe3c3548afa4fee Ref gh-2336
* Event: provide verbose info for focus(in | out) & rename support propsOleg Gaidarenko2015-05-191-10/+17
| | | | | Ref c074006a69db73a116dc04ec78844468a8cea7d3 Ref gh-2312
* Core:CSS:Event: simplification of native method signaturesOleg Gaidarenko2015-05-031-1/+1
| | | | | | | | | | | * Remove third argument from "addEventListener" * Remove third argument from "removeEventListener" * Remove second argument from "getComputedStyle" Ref gh-2047 Ref 85577a348a72ae765e0d7330b9e82985d23c94b7
* Event: add support commentOleg Gaidarenko2015-05-031-0/+7
| | | | | | (cherry-picked from 9db9316609c2881dbb6abc49efc3aa91a57a02ad) Ref gh-2047
* Event: remove guard for falsy handler argument of jQuery#on methodOleg Gaidarenko2015-05-031-2/+0
| | | | | | | | | | (cherry-picked from fac67a984268ef8f7de952666fda6d8d32754f5f) Since we don't have this in off method and its a common perception that this is a rudiment code Ref gh-2248 Closes gh-2249
* Event: correct support commentOleg Gaidarenko2015-03-081-1/+3
| | | | | | | (cherry-picked from 361a0d5150a1c57b1857611cde1b05bd0ef21a50) See discussion in https://github.com/jquery/jquery/commit/a5e1c9b44c971fd7046d9a95bd0810e50840b663
* Event: Add a note about a mouseenter bug in ChromeMichał Gołębiowski2015-01-251-0/+8
| | | | | | | Also, add a support comment about older Safari. Refs https://code.google.com/p/chromium/issues/detail?id=333868 Partially cherry-picked from a5e1c9b44c971fd7046d9a95bd0810e50840b663
* Event: HTML5 drop events inherit from MouseEventDave Methvin2015-01-141-1/+1
| | | | | | | | | Fixes gh-2009 Ref gh-1925 (cherry picked from commit d7e5fcee519e5f3e840beef9e67a536e75133df9) Conflicts: test/unit/event.js
* Core: Standardize indexOf comparisonsRichard Gibson2015-01-101-2/+2
| | | | | | | | | | not present: `< 0` present: `> -1` at index: `=== N` (cherry picked from commit 53aa87f3bf4284763405f3eb8affff296e55ba4f) Closes gh-1985
* Event: Normalize mouse event properties in drag eventsAditya Raghavan2015-01-051-1/+1
| | | | | | | | DragEvent is a superset of MouseEvent, so we want to fix up mouse properties like pageX and pageY. Fixes gh-1925 (cherry picked from commit 389b2ab3b93bfd68ca6c6153a43e11d93ab9ec71)
* Event: Add reference to data moduleNorman Xu2014-12-311-1/+1
| | | | | | | Since we are using _data() quite a lot in event module and drop data/accepts as there is no direct reference Ref gh-1948
* Event: Empty namespaces should be uneventfully ignoredDave Methvin2014-12-091-1/+1
| | | | | | | Thanks @hamishdickson for the report! Closes gh-1769 (cherry picked from commit 8653068dd6b8a515f5c1d8a0fda4479e9534103e)
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-12-081-3/+4
| | | | | | | | | | That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Fixes gh-1836 Fixes gh-1701 Refs gh-1815 Refs gh-1820
* Event: Copy detail property to jQuery.Event on native eventsDave Methvin2014-12-031-1/+1
| | | | | | | | Fixes gh-1867 (cherry picked from commit d9ed166c865e91ccc8cef1ca282785c500ca2306) Conflicts: test/unit/event.js
* Event: Restore the `constructor` property on jQuery.Event prototypeDaniel Herman2014-09-041-0/+1
| | | | | | | | | | | The original definition of the jQuery.Event prototype was paving over the `constructor` property which was causing jQuery.isPlainObject to improperly report that an instance of jQuery.Event was a plain object. Fixes #15090 Closes gh-1580 (cherry picked from commit b807aedb7fee321fb3aa5d156a5a256ab0634e2d)
* Core: Drop strundefined variableChris Antaki2014-09-021-4/+3
| | | | | Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b Closes gh-1628
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-26/+52
| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: build/tasks/build.js src/ajax/xhr.js src/attributes/classes.js src/attributes/prop.js src/attributes/val.js src/core/init.js src/core/ready.js src/css.js src/css/curCSS.js src/css/defaultDisplay.js src/data.js src/data/var/dataPriv.js src/data/var/dataUser.js src/dimensions.js src/effects.js src/event.js src/manipulation.js src/offset.js src/queue.js src/selector-native.js test/data/testrunner.js
* Event: Remove redundant fallback to getPreventDefault()Michał Gołębiowski2014-03-201-5/+3
| | | | | | | Android 2.3 is happy with returnValue already used for oldIE; the getPreventDefault() fallback is not needed. Closes gh-1546
* Event: Treat Pointer events like mouse events, #14741louisremi2014-03-161-2/+4
| | | | | | Ref #14741 Ref gh-1503 (cherry picked from commit e06f428f6ed99e0fafb2e21c456eafc570e3e5ba)
* Event: Call underlying stopImmediatePropagation when presentDave Methvin2014-03-121-0/+7
| | | | | Fixes #13997 (cherry picked from commit 6a89db86ed817f6a7498076e2a06b90f9fce0831)
* Event: Allow triggerHandler(beforeunload)Dave Methvin2014-03-041-2/+3
| | | | | | | | Fixes #14791 (cherry picked from commit 06adf7c95d93507908181995a9ea15fe2729595a) Conflicts: src/event.js
* Ref #14180, let focusin/out work on non-element targets.Dave Methvin2013-11-141-2/+2
| | | | | | | (cherry picked from commit c2aca17d457d302cb1683f925b9e5ee93f0984ea) Conflicts: src/event.js
* Fix #14180. Allow cross-frame use of focusin/out. Close gh-1369.Dave Methvin2013-11-121-7/+16
| | | | | (cherry picked from commit ebdb467761d756d4e52608a0df4a4d9b17da8092) (conflicts with .data() resolved manually)
* Fix some code style inconsistenciesOleg2013-11-071-2/+2
|
* Revert "Fix #14180. Allow cross-frame use of focusin/out. Close gh-1369."Dave Methvin2013-10-221-14/+7
| | | | | | This reverts commit bba8366af48bd2c80c96e7a0f58b3e16fd736125. Because cross-frame focus sucks.
* Fix #14180. Allow cross-frame use of focusin/out. Close gh-1369.Dave Methvin2013-10-221-7/+14
| | | | | (cherry picked from commit 6d5dfa0eda2c19e8838930fafff83b596654eca2) Manually edited for conflicts.
* Fixes #14450. Remove CommonJS+AMD syntax.Timmy Willison2013-10-151-15/+14
| | | | | | | | | | | | - To keep file size unaffected, an extra pragma was added to build.js to remove certain lines when building with special comments. Conflicts: src/core.js src/css.js src/effects.js src/event.js src/manipulation.js src/offset.js
* Fix #13993. Save result of native inline handlers. Close gh-1368.Dave Methvin2013-10-061-2/+5
| | | | (cherry picked from commit 3bcd04f528597dac0a7084865461574ab4a06465)
* Fix #14282. Don't fondle getPreventDefault if preventDefault exists. Close ↵Dave Methvin2013-09-191-2/+8
| | | | | | | | | gh-1365. (cherry picked from commit 4671ef15c2d62962048fd4863911146fcc085f26) Conflicts: src/event.js
* Separate jQuery.fn.init into its own module (for lighter core dependencies ↵Timmy Willison2013-09-091-0/+1
| | | | | | | | | | across all modules). Restore proper support property for effects. Conflicts: src/attributes/classes.js src/core.js src/manipulation.js src/traversing.js
* Break jQuery.access out into its own module to separate it from core; Adjust ↵Timmy Willison2013-09-091-12/+14
| | | | | | | | | | | | | CommonJS+AMD build support to include non-var dependencies. Convert modules with more than a few dependencies to use CJS+AMD syntax. Conflicts: src/core.js src/css.js src/data.js src/effects.js src/event.js src/manipulation.js src/traversing.js
* Always return jQuery in modules that can be included separatelyTimmy Willison2013-09-081-0/+1
| | | | | | | Conflicts: src/attributes.js src/data.js src/manipulation.js
* Fix #10814. Fix #14084. Make support tests lazy and broken out to components.Michał Gołębiowski2013-09-061-6/+6
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-7/+20
| | | | | | | | | | | | | | | | | | | | Conflicts: Gruntfile.js README.md src/ajax.js src/ajax/xhr.js src/attributes.js src/core.js src/css.js src/data.js src/effects.js src/event.js src/manipulation.js src/offset.js src/selector-native.js src/traversing.js test/unit/core.js test/unit/data.js
* Remove an unnecessary commentMichał Gołębiowski2013-05-241-1/+0
|
* Fix #13393. Avoid IE9 activeElement of death.Dave Methvin2013-04-081-2/+8
| | | | | | | (Cherry picked from 85fc5878b3c6af73f42d61eedf73013e7faae408) Conflicts: src/event.js