aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
Commit message (Collapse)AuthorAgeFilesLines
* Core: Migrate from AMD to ES modules 🎉Michał Gołębiowski-Owczarek2019-11-181-13/+9
| | | | | | | | | | | | | | | | | | | | | | Migrate all source AMD modules to ECMAScript modules. The final bundle is compiled by a custom build process that uses Rollup under the hood. Test files themselves are still loaded via RequireJS as that has to work in IE 11. Tests can now be run in "Load as modules" mode which replaces the previous "Load with AMD" option. That option of running tests doesn't work in IE and Edge as it requires support for dynamic imports. Some of the changes required by the migration: * check `typeof` of `noGlobal` instead of using the variable directly as it's not available when modules are used * change the nonce module to be an object as ECMASscript module exports are immutable * remove some unused exports * import `./core/parseHTML.js` directly in `jquery.js` so that it's not being cut out when the `ajax` module is excluded in a custom compilation Closes gh-4541
* Build: ESLint: forbid unused function parametersMichał Gołębiowski-Owczarek2019-05-131-4/+1
| | | | | | | | | | | | | This commit requires all function parameters to be used, not just the last one. In cases where that's not possible as we need to match an external API, there's an escape hatch of prefixing an unused argument with `_`. This change makes it easier to catch unused AMD dependencies and unused parameters in internal functions the API of which we may change at will, among other things. Unused AMD dependencies have been removed as part of this commit. Closes gh-4381
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-28/+3
| | | | | | | | | | | Also, update support comments format to match format described in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 with the change from: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-448998379 (open-ended ranges end with `+`). Fixes gh-3950 Fixes gh-4299 Closes gh-4347
* Core: deprecate jQuery.isFunctionJason Bedard2018-01-151-2/+3
| | | | Fixes gh-3609
* Offset: fix error from bad merge in #3695Jason Bedard2017-07-101-2/+2
|
* Revert "Offset: Resolve strict mode ClientRect "no setter" exception"Jason Bedard2017-07-101-4/+2
| | | | This reverts commit 3befe5911af0cf516896482bb9ddf197c8cb8a8e.
* Core: Deprecate jQuery.isWindowShashanka Nataraj2017-07-101-3/+3
| | | | | Fixes gh-3629 Close gh-3702
* Offset: Use correct offset parents; include all border/scroll valuesRichard Gibson2017-04-241-26/+31
| | | | | | | | Thanks @anseki Fixes gh-3080 Fixes gh-3107 Closes gh-3096 Closes gh-3487
* Build: fix tests in AMD modeTimmy Willison2017-03-061-3/+3
| | | | - nodeName was included at the wrong spot in dependency lists
* Core: Deprecate jQuery.nodeNamekaran-962017-03-011-2/+4
| | | | | Fixes gh-3475 Closes gh-3505
* Offset: Eliminate little-used internal functionRichard Gibson2016-12-191-10/+10
| | | | Fixes gh-3449 Closes gh-3456
* Offset: report offset for 0 sized elementsJason Bedard2016-12-121-13/+8
| | | | Fixes gh-3267 Closes gh-3367
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-251-0/+2
| | | | Fixes gh-3073
* Offset: Resolve strict mode ClientRect "no setter" exceptionRichard Gibson2016-04-231-2/+4
|
* Docs: Update support comments to follow the new syntaxMichał Gołębiowski2016-03-301-1/+1
| | | | | The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
* Docs: Update support comments related to IEMichał Gołębiowski2016-03-301-1/+1
| | | | All support comments were checked for Edge applicability.
* Docs:Tests: Remove obsolete code from tests, update support commentsMichał Gołębiowski2016-03-081-2/+2
| | | | | | | | | | Support comments that were lacking the final IE/Edge version that exhibits the bug were checked & updated. Links to the Chromium bug tracker were updated. Code in tests related to unsupported browsers (like Android 2.3 in non-basic tests) has been removed. Fixes gh-2868 Closes gh-2949
* Revert "Offset: account for scroll when calculating position"Oleg Gaidarenko2016-02-091-5/+2
| | | | | | | | | | | | This reverts commit 2d715940b9b6fdeed005cd006c8bf63951cf7fb2. This commit provoked new issues: gh-2836, gh-2828. At the meeting, we decided to revert offending commit (in all three branches - 2.2-stable, 1.12-stable and master) and tackle this issue in 3.x. Fixes gh-2828
* Offset: offsetLeft/Top on empty set returns undefinedDave Methvin2015-11-101-1/+1
| | | | | | Fixes gh-2319 Closes gh-2702 Ref gh-2701
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-11/+15
| | | | Fixes gh-2056
* 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. Refs gh-2482
* Offset: return before getBoundingClientRect to avoid error in IE8-11Timmy Willison2015-06-161-2/+9
|
* Offset: return zeros for disconnected/hidden elementsTimmy Willison2015-06-161-1/+4
| | | | | Fixes gh-2310 Close gh-2396
* Revert "Offset: allow offset setter to throw for disconnected elements"Timmy Willison2015-06-161-1/+1
| | | | This reverts commit 0d11c1182f2012cd6eb06ce1e3fa5a495af9bee3.
* Offset: account for scroll when calculating positionRichard McDaniel2015-05-121-2/+5
| | | | | Fixes gh-1708 Close gh-1714
* Offset: allow offset setter to throw for disconnected elementsTimmy Willison2015-05-051-1/+1
| | | | Fixes gh-2114
* Offset: remove ownerDocument check in offset getterTimmy Willison2015-05-051-4/+5
| | | | Fixes gh-2115
* Offset: Fix .offset() to correctly work with ShadowDOMArthur Stolyar2015-05-051-14/+12
| | | | | Fixes gh-1784 Close gh-2043
* Offset: simplify jQuery#offsetParent methodOleg Gaidarenko2015-01-131-3/+12
| | | | | | | | | | | | * It seems, check for html element (and previously for body element) was redundant * Simplify "return" statement * Add comment about potential errors that didn't find themselves in real life app Closes gh-1968
* Build: Don't assume the browser environment; smoke test on Node w/ jsdomMichał Gołębiowski2014-12-261-5/+5
| | | | | Fixes gh-1950 Closes gh-1949
* Event: fix incorrect window bug with scrollTop/Left in iframesAditya Raghavan2014-12-241-2/+2
| | | | | Fixes gh-1945 Closes gh-1959
* Dimensions: allow modification of coordinates argumentOleg Gaidarenko2014-11-161-1/+3
| | | | | Fixes gh-1848 Closes gh-1853
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-11-031-5/+1
| | | | | | | | That includes Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Closes gh-1820 Refs gh-1815
* Offset: Simplified a conditionalChris Antaki2014-09-021-1/+1
|
* Core: Drop strundefined variableChris Antaki2014-09-021-3/+2
|
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-2/+4
|
* Support: clean up comments and Support notationDave Methvin2014-06-101-6/+9
| | | | Closes gh-1577
* Offset: Fix comment typo, thanks @AurelioDeRosaDave Methvin2013-12-181-1/+1
|
* Fixes #14450. Remove CommonJS+AMD syntax.Timmy Willison2013-10-151-15/+15
|
* Fix some code style inconsistenciesOleg2013-10-071-1/+1
|
* No ticket: fix code style inconsistencies. Closes gh-1361Oleg2013-09-131-1/+1
|
* The cssHook from addGetHookIf wasn't actually getting addedTimmy Willison2013-09-111-1/+1
|
* No ticket. Abstract conditional hook definition.Michał Gołębiowski2013-09-111-20/+10
|
* Remove offset dependency from css. Move curCSS and getStyles to their own ↵Timmy Willison2013-09-101-9/+42
| | | | modules. -39 bytes. Close gh-1360.
* Separate jQuery.fn.init into its own module (for lighter core dependencies ↵Timmy Willison2013-09-091-0/+1
| | | | across all modules)
* Apply consistent ordering in all modules. -38 bytes. Order modules like ↵Timmy Willison2013-09-091-45/+42
| | | | functions > jQuery.extend > jQuery.fn.extend.
* Break jQuery.access out into its own module to separate it from core; Adjust ↵Timmy Willison2013-09-091-2/+3
| | | | CommonJS+AMD build support to include non-var dependencies. Convert modules with more than a few dependencies to use CJS+AMD syntax.
* Always return jQuery in modules that can be included separatelyTimmy Willison2013-09-081-0/+1
|
* No ticket. Restore checking individual src/**/*.js files by jsHint.Michał Gołębiowski2013-09-061-1/+2
|
* Specify support as a dependency wherever it is used. Optimize module order ↵Timmy Willison2013-08-151-2/+2
| | | | to save 15 bytes.