aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
Commit message (Collapse)AuthorAgeFilesLines
* Effects: Remove jQuery.fx.intervalMichał Gołębiowski-Owczarek2022-03-011-2/+1
| | | | | | | `jQuery.fx.interval` has been deprecated since jQuery 3.0.0 but it has been still used in jQuery code until this change. This commit removes the definition and explicitly uses the `13` number in its place. Closes gh-5017
* Core: Drop support for Edge Legacy (i.e. non-Chromium Microsoft Edge)Michał Gołębiowski-Owczarek2020-09-221-3/+2
| | | | | | | | | | | | Drop support for Edge Legacy: the non-Chromium, EdgeHTML-based Microsoft Edge version. Also, restrict some workarounds that were applied unconditionally in all browsers to run only in IE now. This slightly increases the size but reduces the performance burden on modern browsers that don't need the workarounds. Also, clean up some comments & remove some obsolete workarounds. Fixes gh-4568 Closes gh-4792
* Build: Correct code indentations based on jQuery Style GuideWonseop Kim2020-05-051-2/+3
| | | | | | | | 1. Correct code indentations based on jQuery Style Guide (contribute.jquery.org/style-guide/js/#spacing). 2. Add rules to "src/.eslintrc.json" to enable "enforcing consistent indentation", with minimal changes to the current code. Closes gh-4672
* Core: Migrate from AMD to ES modules 🎉Michał Gołębiowski-Owczarek2019-11-181-29/+20
| | | | | | | | | | | | | | | | | | | | | | 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-3/+2
| | | | | | | | | | | | | 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
* Effect: Fix a unnecessary conditional statement in .stop()Wonseop Kim2019-05-011-1/+1
| | | | | | | | | Because of the above conditional, the 'type' variable has a value of type 'string' or undefined. Therefore, boolean comparisons for 'type' variable is always unnecessary because it return true. The patch removed the unnecessary conditional statement. Fixes gh-4374 Closes gh-4375
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-13/+9
| | | | | | | | | | | 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
* Data: Separate data & css/effects camelCase implementationsMichał Gołębiowski-Owczarek2019-04-291-4/+4
| | | | | | | | The camelCase implementation used by the data module no longer turns `-ms-foo` into `msFoo` but to `MsFoo` now. This is because `data` is supposed to be a generic utility not specifically bound to CSS use cases. Fixes gh-3355 Closes gh-4365
* Core: deprecate jQuery.isFunctionJason Bedard2018-01-151-8/+9
| | | | Fixes gh-3609
* Core: deprecate jQuery.proxy (not slated for removal)Timmy Willison2018-01-081-1/+1
| | | | | Fixes gh-2958 Close gh-3885
* Core: deprecate jQuery.nowTimmy Willison2018-01-081-2/+2
| | | | | Fixes gh-2959 Close gh-3884
* Core: make camelCase function available only for internal usageNilton Cesar2018-01-081-3/+4
| | | | | Close gh-3604 Fixes gh-3384
* Docs:Tests: Update IE/Edge-related support comments & testsMichał Gołębiowski2017-05-151-2/+3
| | | Closes gh-3661
* Effects: stabilize rAF logic & align timeout logic with itOleg Gaidarenko2017-03-061-28/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rAF logic was introduced almost three years ago relative to this commit, as a primary method for scheduling animation (see gh-1578 pull). With it there was two substantial changes - one was explicitly mentioned and the other was not. First, if browser window was hidden aka `document.hidden === true` it would immediately execute all scheduled animation without waiting for time pass i.e. tick time become `0` instead of 13 ms of a default value. Which created possibility for circular executions in case if `complete` method executed the same animation (see gh-3434 issue). And the second one - since then there was two ways of scheduling animation: with `setInterval` and `requestAnimationFrame`, but there was a difference in their execution. In case of `setInterval` it waited default `jQuery.fx.interval` value before actually starting the new tick, not counting the first step which wasn't set to be executed through tick method (aka `jQuery.fx.tick`). Whereas `requestAnimationFrame` first scheduled the call and executed the `step` method right after that, counting the first call of `jQuery.fx.timer`, `tick` was happening twice in one frame. But since tests explicitly disabled rAF method i.e. `requestAnimationFrame = null` and checking only `setInterval` logic, since it's impossible to do it otherwise - we missed that change. Faulty logic also was presented with `cancelAnimationFrame`, which couldn't clear any timers since `raf` scheduler didn't define new `timerId` value. Because that change was so subtle, apparently no user noticed it proving that both `cancelAnimationFrame` and `clearInterval` code paths are redundant. Since `cancelAnimationFrame` didn't work properly and rAF is and was a primary used code path, plus the same approach is used in other popular animation libs. Therefore those code paths were removed. These changes also replace two different functions which schedule the animation with one, which checks what type of logic should be used and executes it appropriatley, but for secondary path it now uses `setTimeout` making it more consistent with rAF path. Since ticks are happening globally we also don't require to listen `visibilitychange` event. It also changes the way how first call is scheduled so execution of animation will not happen twice in one frame. No new tests were not introduced, since now `setTimeout` logic should be equivalent to the rAF one, but one test was changed since now we actually execute animation at the first tick. Fixes gh-3434 Closes gh-3559
* Effects: Resolve issues revealed by recent Callbacks fixRichard Gibson2017-01-161-12/+27
| | | | | | | | | | Notify full progress before resolving empty animations Register animation callbacks before their ticker Remove the right timer when immediately-done animations spawn more Ref 9d822bc1c13dd3393b418210a99537c22c06f2c3 Fixes gh-3502 Fixes gh-3503 Closes gh-3496
* Core: Deprecate jQuery.isArrayManoj Kumar2016-11-301-1/+1
| | | | | Fixes gh-2961 Closes gh-3278
* Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapseTimmy Willison2016-09-151-3/+3
| | | | | | | | | | | | - Renames and changes rnotwhite to focus on HTML whitespace chars - Change internal use of jQuery.trim to more accurate strip and collapse - Adds tests to ensure HTML space characters are retained where valid - Doesn't add tests where the difference is inconsequential and existing tests are adequate. Fixes gh-3003 Fixes gh-3072 Close gh-3316
* Build: Update eslint config and fix associated errorsOleg Gaidarenko2016-07-151-3/+8
|
* Build: ESLint detailsOleg Gaidarenko2016-06-111-7/+9
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-251-0/+2
| | | | Fixes gh-3073
* 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.
* Effects: remove width/height exception for oldIETimmy Willison2016-01-211-1/+1
| | | | | Fixes gh-2488 Close gh-2849
* CSS: isHidden -> isHiddenWithinTreeTimmy Willison2016-01-211-4/+4
| | | | | Fixes gh-2404 Close gh-2855
* CSS: Restore cascade-override behavior in .showRichard Gibson2016-01-131-3/+10
| | | | | | | Fixes gh-2654 Fixes gh-2308 Close gh-2810 Ref 86419b10bfa5e3b71a7d416288ab806d47a31d1f
* Effects: Finish should call progressThomas Tortorini2015-09-081-0/+1
| | | | | Fixes gh-2283 Closes gh-2292
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-36/+45
| | | | Fixes gh-2056
* Effects: Adding unit tests for jQuery.AnimationCorey Frang2015-06-261-18/+26
| | | | Closes gh-2326
* Core: Switch from modules to just window.setTimeout etc.Michał Gołębiowski2015-06-171-8/+4
| | | | | | Using modules for window.setTimeout etc. made those functions cached and disabled Sinon mocking, making effects tests fail. Just writing window.setTimeout directly is smaller anyway.
* Core: Use window.setTimeout & friends instead of global equivalentsMichał Gołębiowski2015-06-171-1/+5
| | | | Fixes gh-2177
* CSS: Ignore the CSS cascade in show()/hide()/etc.Richard Gibson2015-05-111-76/+102
| | | | | | Fixes gh-1767 Fixes gh-2071 Closes gh-2180
* Effects: set default easing using jQuery.easing._defaultTimmy Willison2015-05-051-1/+4
| | | | | Fixes gh-2219 Close gh-2218
* CSS: Support relative adjustment in any applicable unitMr212015-03-091-50/+6
| | | | | Fixes gh-1711 Closes gh-2011
* Build: Don't assume the browser environment; smoke test on Node w/ jsdomMichał Gołębiowski2014-12-261-1/+2
| | | | | Fixes gh-1950 Closes gh-1949
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-12/+17
|
* Effects: Improve raf logicOleg Gaidarenko2014-06-161-21/+18
| | | | | | | | * Make animation behave as if jQuery.fx.off = true if document is hidden * Use cancelAnimationFrame in jQuery.fx.stop Closes gh-1578
* Effects: Reintroduce use of requestAnimationFrameOleg Gaidarenko2014-06-161-2/+25
| | | | | | | | | | Same as before, just use don't use prefixes, since they pretty match useless now and use page visibility API to determine if animation should start. Also null the requestAnimationFrame attribute in window for tests since sinon does not provide fake method for it. Fixes #15147
* Support: clean up comments and Support notationDave Methvin2014-06-101-30/+29
| | | | Closes gh-1577
* Effects: Respect display value on inline elementsOleg Gaidarenko2014-04-301-3/+5
| | | | | | | | Take "olddisplay" value into the account Fixes #14824 Closes gh-1566 Ref 73fe17299a840a8a7f3ffffcac15e32a88bd3d66
* Effects: Don't overwrite display:none when .hide()ing hidden elementsRichard Gibson2014-03-201-5/+10
| | | | | Fixes #14848 Closes gh-1548
* Effects: First step() call should match :animated selectorDave Methvin2014-01-071-1/+4
| | | | | Fixes #14623 Closes gh-1473
* Reduce size by reordering variable declarationsChris Antaki2013-12-161-4/+4
| | | | Close gh-1421
* Fixes #14450. Remove CommonJS+AMD syntax.Timmy Willison2013-10-151-16/+15
|
* No ticket: fix code style inconsistencies. Closes gh-1361Oleg2013-09-131-4/+3
|
* Ensure display: inline-block when animating width/height on inline elements. ↵Timmy Willison2013-09-101-3/+10
| | | | Fixes #14344.
* 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-211/+211
| | | | functions > jQuery.extend > jQuery.fn.extend.
* Break jQuery.access out into its own module to separate it from core; Adjust ↵Timmy Willison2013-09-091-14/+16
| | | | 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-1/+1
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-114/+15
|