]> source.dussan.org Git - jquery.git/log
jquery.git
6 years agoAttributes: allow array param in add/remove/toggleClass
Timmy Willison [Tue, 2 Jan 2018 21:45:10 +0000 (16:45 -0500)]
Attributes: allow array param in add/remove/toggleClass

+30 bytes instead of +182

Thanks to @faisaliyk for the first pass on this feature.

Fixes gh-3532
Close gh-3917

6 years agoManipulation: use `.children` to select tbody elements
Timmy Willison [Tue, 2 Jan 2018 20:42:43 +0000 (15:42 -0500)]
Manipulation: use `.children` to select tbody elements

- selectors beginning with a child combinator are not valid natively.
  This fixes the tests when using selector-native.js

6 years agoCore: deprecate jQuery.proxy (not slated for removal)
Timmy Willison [Mon, 11 Dec 2017 17:58:35 +0000 (12:58 -0500)]
Core: deprecate jQuery.proxy (not slated for removal)

Fixes gh-2958
Close gh-3885

6 years agoCore: deprecate jQuery.now
Timmy Willison [Mon, 11 Dec 2017 17:39:11 +0000 (12:39 -0500)]
Core: deprecate jQuery.now

Fixes gh-2959
Close gh-3884

6 years agoCore: adjust data tests to ensure proper camelCasing
Timmy Willison [Mon, 4 Dec 2017 21:38:37 +0000 (16:38 -0500)]
Core: adjust data tests to ensure proper camelCasing

- Add back camelCase to the public object (deprecate not remove)
Ref #3384

6 years agoCore: make camelCase function available only for internal usage
Nilton Cesar [Wed, 22 Nov 2017 19:43:44 +0000 (14:43 -0500)]
Core: make camelCase function available only for internal usage

Close gh-3604
Fixes gh-3384

6 years agoBuild: Only run browser tests in one Node version on Travis
Michał Gołębiowski-Owczarek [Wed, 3 Jan 2018 08:41:46 +0000 (09:41 +0100)]
Build: Only run browser tests in one Node version on Travis

Ref gh-3744
Closes gh-3894

6 years agoTests: Add support for running unit tests via grunt with karma
Timo Tijhof [Tue, 1 Aug 2017 16:52:45 +0000 (09:52 -0700)]
Tests: Add support for running unit tests via grunt with karma

- Update QUnit to 1.23.1
- Remove unused dl#dl from test/index.html
- Remove unused map#imgmap from test/index.html
- Ensure all urls to data use baseURI
- Add the 'grunt karma:main' task
  - customContextFile & customDebugFile
- Add 'npm run jenkins' script

Close gh-3744
Fixes gh-1999

6 years agoDocs: Create CODE_OF_CONDUCT.md
Timmy Willison [Mon, 27 Nov 2017 16:41:00 +0000 (11:41 -0500)]
Docs: Create CODE_OF_CONDUCT.md

Close gh-3865

6 years agoCSS: Correctly set support properties with non-default zoom
Saptak Sengupta [Wed, 6 Dec 2017 04:59:54 +0000 (10:29 +0530)]
CSS: Correctly set support properties with non-default zoom

Fixes gh-3808
Closes gh-3872

7 years agoManipulation: Reduce size by eliminating single-use variable
Richard Gibson [Wed, 22 Nov 2017 19:43:44 +0000 (14:43 -0500)]
Manipulation: Reduce size by eliminating single-use variable

Closes gh-3851

7 years agoTests: Add iOS 11 support test results
Michał Gołębiowski-Owczarek [Mon, 20 Nov 2017 22:46:31 +0000 (23:46 +0100)]
Tests: Add iOS 11 support test results

7 years agoBuild: Test on Node.js 9
Michał Gołębiowski-Owczarek [Mon, 6 Nov 2017 22:14:22 +0000 (23:14 +0100)]
Build: Test on Node.js 9

Closes gh-3840

7 years agoTests: Add Safari 11 support test results
Michał Gołębiowski-Owczarek [Wed, 18 Oct 2017 15:59:22 +0000 (17:59 +0200)]
Tests: Add Safari 11 support test results

7 years agoTests: Make Node tests work for paths with spaces in them
Michał Gołębiowski-Owczarek [Wed, 18 Oct 2017 15:44:50 +0000 (17:44 +0200)]
Tests: Make Node tests work for paths with spaces in them

Without this patch Jenkins tests fail as jQuery job names there contain spaces,
e.g. "jQuery Core".

Closes gh-3821

7 years agoBuild: Remove package-lock.json, add it to .gitignore
Michał Gołębiowski-Owczarek [Mon, 25 Sep 2017 17:34:28 +0000 (19:34 +0200)]
Build: Remove package-lock.json, add it to .gitignore

npm 5, even the version included in the latest Node.js 8.5.0 re-generates
`package-lock.json` on each install. And when it does on a system that doesn't
support all the optional dependencies that are supported on the OS where the
lockfile was generated, it removes those optional deps from the lockfile.

The effect is that everyone firing `npm install` on our repo on any OS other
than macOS will immediately get a dirty state of the repo as the `fsevents`
dependency subtree gets removed from `package-lock.json`. That's a really bad
experience.

This commit removes package-lock.json from the repository and adds it to
.gitignore. We'll start committing the file again once the issue is resolved
on npm's part.

Fixes gh-3792

7 years agoBuild: increase timeout in Promises/A+ tests 10 times
Michał Gołębiowski-Owczarek [Wed, 20 Sep 2017 13:36:40 +0000 (15:36 +0200)]
Build: increase timeout in Promises/A+ tests 10 times

The promises-aplus-tests sets up a default 200 ms Mocha timeout. This makes
our tests randomly fail on Jenkins. 2 seconds will be safer.

Closes gh-3791

7 years agoBuild: Drop cross-spawn, use child_process.spawn shell option
Michał Gołębiowski-Owczarek [Wed, 20 Sep 2017 13:32:35 +0000 (15:32 +0200)]
Build: Drop cross-spawn, use child_process.spawn shell option

7 years agoBuild: Update to Babel 7, use for-of plugin instead of preset-es2015
Henry Zhu [Mon, 25 Sep 2017 17:02:19 +0000 (13:02 -0400)]
Build: Update to Babel 7, use for-of plugin instead of preset-es2015

Closes gh-3786

7 years agoCSS: Detect more WebKit styles erroneously reported as percentages
Richard Gibson [Mon, 18 Sep 2017 15:59:50 +0000 (11:59 -0400)]
CSS: Detect more WebKit styles erroneously reported as percentages

Ref 692f9d4db30c9c6c4f6bc76005cf153586202fa6
Fixes gh-3777
Closes gh-3778

7 years agoTests: Update lineHeight adjustments to give Android more slop
Richard Gibson [Fri, 8 Sep 2017 21:14:57 +0000 (17:14 -0400)]
Tests: Update lineHeight adjustments to give Android more slop

7 years agoCSS: Avoid unit-conversion interference from CSS upper bounds
Richard Gibson [Mon, 28 Aug 2017 17:23:04 +0000 (13:23 -0400)]
CSS: Avoid unit-conversion interference from CSS upper bounds

Fixes gh-2144
Closes gh-3745

7 years agoTests: Update path calculation
Jordan Beland [Wed, 16 Aug 2017 05:07:49 +0000 (22:07 -0700)]
Tests: Update path calculation

Fixes gh-3756
Closes gh-3757

7 years agoBuild: Update my name in ATHORS.txt
Michał Gołębiowski-Owczarek [Sat, 12 Aug 2017 16:23:38 +0000 (18:23 +0200)]
Build: Update my name in ATHORS.txt

I forgot .mailmap isn't everything.

7 years agoBuild: Update my name in .mailmap
Michał Gołębiowski-Owczarek [Sat, 12 Aug 2017 16:06:34 +0000 (18:06 +0200)]
Build: Update my name in .mailmap

I got married! 🎉

7 years agoBuild: Fix comment typo
Matan Kotler-Berkowitz [Tue, 8 Aug 2017 22:08:02 +0000 (01:08 +0300)]
Build: Fix comment typo

Closes gh-3747

7 years agoDimensions: Don't trust non-pixel computed width/height
Richard Gibson [Mon, 7 Aug 2017 16:26:03 +0000 (12:26 -0400)]
Dimensions: Don't trust non-pixel computed width/height

Fixes gh-3611
Closes gh-3741

7 years agoTests: Replace non-ASCII whitespace in source code
Richard Gibson [Mon, 31 Jul 2017 19:16:23 +0000 (15:16 -0400)]
Tests: Replace non-ASCII whitespace in source code

7 years agoDimensions: Improve offsetWidth/offsetHeight fallback
Richard Gibson [Mon, 31 Jul 2017 16:36:54 +0000 (12:36 -0400)]
Dimensions: Improve offsetWidth/offsetHeight fallback

Fixes gh-3698
Fixes gh-3602
Closes gh-3738

7 years agoAjax: add an ontimeout handler to all requests
Erik Lax [Thu, 23 Mar 2017 13:33:25 +0000 (14:33 +0100)]
Ajax: add an ontimeout handler to all requests

Fixes gh-3586
Close gh-3590

7 years agoTests: Account for TestSwarm focus issues
Richard Gibson [Thu, 20 Jul 2017 18:17:09 +0000 (14:17 -0400)]
Tests: Account for TestSwarm focus issues

Closes gh-3732

7 years agoTests: Simulate events when CI hinders use of native ones
Richard Gibson [Thu, 20 Jul 2017 17:16:04 +0000 (13:16 -0400)]
Tests: Simulate events when CI hinders use of native ones

Ref gh-3732

7 years agoTests: Reduce the abort timeout for simple focus testing
Richard Gibson [Wed, 19 Jul 2017 15:45:03 +0000 (11:45 -0400)]
Tests: Reduce the abort timeout for simple focus testing

Ref gh-3732

7 years agoTests: Abort focus tests when the environment doesn't cooperate
Richard Gibson [Wed, 19 Jul 2017 00:49:47 +0000 (20:49 -0400)]
Tests: Abort focus tests when the environment doesn't cooperate

Ref gh-3732

7 years agoTests: Try extra hard to control focus
Richard Gibson [Wed, 19 Jul 2017 00:32:01 +0000 (20:32 -0400)]
Tests: Try extra hard to control focus

Ref gh-3732

7 years agoSupport: Properly check for IE9 absolute scrollbox mishandling
Richard Gibson [Tue, 18 Jul 2017 19:40:41 +0000 (15:40 -0400)]
Support: Properly check for IE9 absolute scrollbox mishandling

Ref gh-3589
Fixes gh-3699
Fixes gh-3730
Closes gh-3729

7 years agoDimensions: Detect and account for content-box dimension mishandling
Richard Gibson [Mon, 10 Jul 2017 16:35:03 +0000 (12:35 -0400)]
Dimensions: Detect and account for content-box dimension mishandling

Fixes gh-3699
Closes gh-3700

7 years agoOffset: fix error from bad merge in #3695
Jason Bedard [Mon, 10 Jul 2017 16:12:49 +0000 (09:12 -0700)]
Offset: fix error from bad merge in #3695

7 years agoRevert "Offset: Resolve strict mode ClientRect "no setter" exception"
Jason Bedard [Wed, 5 Jul 2017 05:22:13 +0000 (22:22 -0700)]
Revert "Offset: Resolve strict mode ClientRect "no setter" exception"

This reverts commit 3befe5911af0cf516896482bb9ddf197c8cb8a8e.

7 years agoTest: ensure position/offset return mutable objects
Jason Bedard [Thu, 15 Jun 2017 07:04:45 +0000 (00:04 -0700)]
Test: ensure position/offset return mutable objects

Fixes gh-3612
Closes gh-3695

7 years agoCore: Deprecate jQuery.isWindow
Shashanka Nataraj [Fri, 23 Jun 2017 04:14:43 +0000 (04:14 +0000)]
Core: Deprecate jQuery.isWindow

Fixes gh-3629
Close gh-3702

7 years agoEvent: `stopPropagation()` on native event-handler
Pierre Spring [Tue, 13 Jun 2017 16:22:08 +0000 (18:22 +0200)]
Event: `stopPropagation()` on native event-handler

Fixes gh-3693
Close gh-3694

7 years agoBuild: fix uglify options for uglify update
Timmy Willison [Mon, 3 Jul 2017 18:25:32 +0000 (14:25 -0400)]
Build: fix uglify options for uglify update

- Uses new typeofs option for compression
- See https://github.com/mishoo/UglifyJS2/issues/2198

Close gh-3710

7 years agoBuild: Update sinon, husky, and qunitjs
Timmy Willison [Mon, 3 Jul 2017 18:03:49 +0000 (14:03 -0400)]
Build: Update sinon, husky, and qunitjs

7 years agoBuild: update node dependencies; commit package-lock.json
CDAGaming [Mon, 26 Jun 2017 15:03:45 +0000 (11:03 -0400)]
Build: update node dependencies; commit package-lock.json

- Also ignore yarn.lock
Close gh-3669

7 years agoDeferred: fix memory leak of promise callbacks
Jason Bedard [Tue, 20 Jun 2017 05:23:24 +0000 (22:23 -0700)]
Deferred: fix memory leak of promise callbacks

Fixes gh-3606
Closes gh-3657

7 years agoDimensions: Include scroll gutter in "padding" box
Richard Gibson [Mon, 19 Jun 2017 19:42:55 +0000 (15:42 -0400)]
Dimensions: Include scroll gutter in "padding" box

Fixes gh-3589
Closes gh-3656

7 years agoTests: minor typos
Andreas Solleder [Fri, 19 May 2017 20:28:54 +0000 (22:28 +0200)]
Tests: minor typos

Close gh-3671

7 years agoBuild: Test on Node.js 8, stop testing on Node.js 7
Michał Gołębiowski [Tue, 30 May 2017 19:22:52 +0000 (21:22 +0200)]
Build: Test on Node.js 8, stop testing on Node.js 7

7 years agoDocs:Tests: Update IE/Edge-related support comments & tests
Michał Gołębiowski [Mon, 15 May 2017 18:37:14 +0000 (20:37 +0200)]
Docs:Tests: Update IE/Edge-related support comments & tests

Closes gh-3661

7 years agoCSS: Drop the float mapping from cssProps
Michał Gołębiowski [Sat, 6 May 2017 18:52:07 +0000 (20:52 +0200)]
CSS: Drop the float mapping from cssProps

Firefox 35 and newer support style.float directly.

Closes #3569

7 years agoTests: Revert some testIframe changes to fix dimensions tests 3658/head
Richard Gibson [Sat, 29 Apr 2017 06:00:12 +0000 (02:00 -0400)]
Tests: Revert some testIframe changes to fix dimensions tests

Ref c0edd8dc18e02999a25768a4946093b015045f80

7 years agoRevert "Tests: Revert some testIframe changes to fix dimensions tests"
Richard Gibson [Sat, 29 Apr 2017 06:05:46 +0000 (02:05 -0400)]
Revert "Tests: Revert some testIframe changes to fix dimensions tests"

This reverts commit c4368a93116e9d1d17587fc2f5421a891957cf45.

7 years agoTests: Revert some testIframe changes to fix dimensions tests
Richard Gibson [Sat, 29 Apr 2017 06:00:12 +0000 (02:00 -0400)]
Tests: Revert some testIframe changes to fix dimensions tests

Ref c0edd8dc18e02999a25768a4946093b015045f80

7 years agoTests: Correct expected assertion count
Richard Gibson [Sat, 29 Apr 2017 05:37:47 +0000 (01:37 -0400)]
Tests: Correct expected assertion count

Ref e94b5b0bbf8d8179bc79ab749470e71092225862

7 years agoTests: Clean up offset debugging
Richard Gibson [Sat, 29 Apr 2017 05:35:20 +0000 (01:35 -0400)]
Tests: Clean up offset debugging

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Ref c0edd8dc18e02999a25768a4946093b015045f80

7 years agoTests: Adjust by actual scroll position, rather than expected
Richard Gibson [Sat, 29 Apr 2017 05:22:55 +0000 (01:22 -0400)]
Tests: Adjust by actual scroll position, rather than expected

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0

7 years agoTests: Keep iframes visible in TestSwarm
Richard Gibson [Sat, 29 Apr 2017 03:54:06 +0000 (23:54 -0400)]
Tests: Keep iframes visible in TestSwarm

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0

7 years agoTests: Add debugging to investigate iOS failures
Richard Gibson [Sat, 29 Apr 2017 02:36:57 +0000 (22:36 -0400)]
Tests: Add debugging to investigate iOS failures

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0

7 years agoTests: Reset iframe window scroll after updating html/document position
Richard Gibson [Fri, 28 Apr 2017 04:46:39 +0000 (00:46 -0400)]
Tests: Reset iframe window scroll after updating html/document position

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Closes gh-3649

7 years agoTests: Prepend test iframes for even *more* consistency
Richard Gibson [Tue, 25 Apr 2017 20:32:40 +0000 (16:32 -0400)]
Tests: Prepend test iframes for even *more* consistency

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0

7 years agoTests: Allow a mock QUnit.test for perfect testIframe fidelity
Richard Gibson [Tue, 25 Apr 2017 20:22:35 +0000 (16:22 -0400)]
Tests: Allow a mock QUnit.test for perfect testIframe fidelity

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Closes gh-3647

7 years agoTests: Attach test iframes to the body for visibility-dependent code
Richard Gibson [Tue, 25 Apr 2017 19:39:41 +0000 (15:39 -0400)]
Tests: Attach test iframes to the body for visibility-dependent code

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Closes gh-3645

7 years agoTests: Be even more async for iOS
Richard Gibson [Tue, 25 Apr 2017 02:59:18 +0000 (22:59 -0400)]
Tests: Be even more async for iOS

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Closes gh-3643

7 years agoTests: Improve offset test setup and labels
Richard Gibson [Tue, 25 Apr 2017 01:44:51 +0000 (21:44 -0400)]
Tests: Improve offset test setup and labels

Hopefully this fixes iOS testing: http://swarm.jquery.org/job/5226

Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Closes gh-3641

7 years agoCore: Update isFunction to handle unusual-@@toStringTag input
Richard Gibson [Mon, 24 Apr 2017 16:39:25 +0000 (12:39 -0400)]
Core: Update isFunction to handle unusual-@@toStringTag input

Ref gh-3597
Fixes gh-3600
Fixes gh-3596
Closes gh-3617

7 years agoOffset: Use correct offset parents; include all border/scroll values
Richard Gibson [Mon, 24 Apr 2017 16:15:39 +0000 (12:15 -0400)]
Offset: Use correct offset parents; include all border/scroll values

Thanks @anseki

Fixes gh-3080
Fixes gh-3107
Closes gh-3096
Closes gh-3487

7 years agoDocs: Update links to HTML spec for stripAndCollapse (#3594) 3638/head
Boom Lee [Wed, 29 Mar 2017 14:42:13 +0000 (22:42 +0800)]
Docs: Update links to HTML spec for stripAndCollapse (#3594)

7 years agoTests: Fix incorrect assert name for ensure_iterability_es6
Timo Tijhof [Mon, 20 Mar 2017 22:32:43 +0000 (15:32 -0700)]
Tests: Fix incorrect assert name for ensure_iterability_es6

Closes gh-3584
Ref bb026fc1.

7 years agoBuild: Updating the master version to 3.2.2-pre.
Timmy Willison [Mon, 20 Mar 2017 19:02:16 +0000 (15:02 -0400)]
Build: Updating the master version to 3.2.2-pre.

7 years agoRevert "Build: Updating the master version to 3.2.2-pre."
Timmy Willison [Mon, 20 Mar 2017 17:43:25 +0000 (13:43 -0400)]
Revert "Build: Updating the master version to 3.2.2-pre."

This reverts commit 066bd8681c4a8ba2de707d59ee3a8df771804970.

7 years agoCSS: retrieve inline style before computed
Timmy Willison [Mon, 20 Mar 2017 17:42:07 +0000 (13:42 -0400)]
CSS: retrieve inline style before computed

- Fixes an issue with getting computed style on detached elements

7 years agoBuild: Updating the master version to 3.2.2-pre.
Timmy Willison [Mon, 20 Mar 2017 17:18:35 +0000 (13:18 -0400)]
Build: Updating the master version to 3.2.2-pre.

7 years agoTests: add test for passing trigger data to radio click handler
Timmy Willison [Mon, 20 Mar 2017 16:54:38 +0000 (12:54 -0400)]
Tests: add test for passing trigger data to radio click handler

Close gh-3581
Fixes gh-3579

7 years agoRevert "Event: Add radio click triggering tests"
Timmy Willison [Mon, 20 Mar 2017 16:53:15 +0000 (12:53 -0400)]
Revert "Event: Add radio click triggering tests"

This reverts commit 5f35b5b406ae7d504de86a3f0a5647b2fdf4f2af.

7 years agoRevert "Event: Trigger checkbox and radio click events identically"
Timmy Willison [Mon, 20 Mar 2017 16:24:49 +0000 (12:24 -0400)]
Revert "Event: Trigger checkbox and radio click events identically"

This reverts commit b442abacbb8464f0165059e8da734e3143d0721f.

7 years agoDimensions: fall back to offsetWidth/Height for inline elems
Timmy Willison [Sat, 18 Mar 2017 18:19:32 +0000 (14:19 -0400)]
Dimensions: fall back to offsetWidth/Height for inline elems

Close gh-3577
Fixes gh-3571

7 years agoTests: move readywait to an iframe test
Steve Mao [Sun, 25 Sep 2016 04:12:20 +0000 (14:12 +1000)]
Tests: move readywait to an iframe test

Close gh-3576
Fixes gh-3573

7 years agoBuild: update PR template
Timmy Willison [Sat, 18 Mar 2017 18:28:51 +0000 (14:28 -0400)]
Build: update PR template

- Comment out things we don't need to see in the PR description
- Change CLA link

7 years agoRelease: edit dist README version on release
Timmy Willison [Fri, 17 Mar 2017 16:30:55 +0000 (12:30 -0400)]
Release: edit dist README version on release

Fixes gh-3574

7 years agoBuild: Updating the master version to 3.2.1-pre.
Timmy Willison [Thu, 16 Mar 2017 21:30:59 +0000 (17:30 -0400)]
Build: Updating the master version to 3.2.1-pre.

7 years agoRelease: md5sum -> md5 -r for MAC
Timmy Willison [Thu, 16 Mar 2017 18:59:57 +0000 (14:59 -0400)]
Release: md5sum -> md5 -r for MAC

7 years agoRelease: update version to 3.2.0-pre
Timmy Willison [Wed, 15 Mar 2017 19:48:18 +0000 (15:48 -0400)]
Release: update version to 3.2.0-pre

7 years agoRelease: update AUTHORS.txt
Timmy Willison [Wed, 15 Mar 2017 19:16:30 +0000 (15:16 -0400)]
Release: update AUTHORS.txt

7 years agoRelease: update release dependencies
Timmy Willison [Wed, 15 Mar 2017 18:57:20 +0000 (14:57 -0400)]
Release: update release dependencies

7 years agoCSS: remove dead code in getWidthOrHeight
Timmy Willison [Mon, 13 Mar 2017 14:53:03 +0000 (10:53 -0400)]
CSS: remove dead code in getWidthOrHeight

- getCSS already falls back to inline styles

Ref gh-3561

7 years agoDimensions: ignore transforms when retrieving width/height
Timmy Willison [Mon, 6 Mar 2017 22:33:47 +0000 (17:33 -0500)]
Dimensions: ignore transforms when retrieving width/height

Close gh-3561
Fixes gh-3193

7 years agoTests: Clean up after the CSS Custom Properties support test
Michał Gołębiowski [Tue, 7 Mar 2017 15:36:28 +0000 (16:36 +0100)]
Tests: Clean up after the CSS Custom Properties support test

Ref bcec54ee7271e2d0e427bcb246e3d2009a8f84f9
Ref 619bf98d5b479f9582dbc40259b666f1c5a83146

7 years agoTests: Skip CSS custom properties tests in non-supporting browsers
Michał Gołębiowski [Tue, 7 Mar 2017 15:13:26 +0000 (16:13 +0100)]
Tests: Skip CSS custom properties tests in non-supporting browsers

Ref 619bf98d5b479f9582dbc40259b666f1c5a83146

7 years agoCSS: Support custom properties 3557/head
Connor Atherton [Sat, 25 Jun 2016 17:21:00 +0000 (10:21 -0700)]
CSS: Support custom properties

Fixes gh-3144
Closes gh-3199
Closes gh-3557

7 years agoCore: move jQuery.fn.nodeName to jQuery.nodeName, add tests
Michał Gołębiowski [Mon, 6 Mar 2017 22:51:26 +0000 (23:51 +0100)]
Core: move jQuery.fn.nodeName to jQuery.nodeName, add tests

Ref ac9e3016
Close gh-3560

7 years agoBuild: fix tests in AMD mode
Timmy Willison [Mon, 6 Mar 2017 23:31:44 +0000 (18:31 -0500)]
Build: fix tests in AMD mode

- nodeName was included at the wrong spot in dependency lists

7 years agoEffects: stabilize rAF logic & align timeout logic with it
Oleg Gaidarenko [Mon, 6 Mar 2017 01:06:10 +0000 (02:06 +0100)]
Effects: stabilize rAF logic & align timeout logic with it

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

7 years agoCore: Deprecate jQuery.nodeName
karan-96 [Tue, 17 Jan 2017 16:52:50 +0000 (22:22 +0530)]
Core: Deprecate jQuery.nodeName

Fixes gh-3475
Closes gh-3505

7 years agoCore: Move holdReady to deprecated
Manoj Kumar [Wed, 31 Aug 2016 04:01:31 +0000 (04:01 +0000)]
Core: Move holdReady to deprecated

Fixes gh-3288
Close gh-3306

7 years agoBuild: Keep deprecated module in slim
Timmy Willison [Mon, 6 Feb 2017 16:50:15 +0000 (11:50 -0500)]
Build: Keep deprecated module in slim

Fixes gh-3237
Close gh-3533

7 years agoTraversing: $.fn.contents() supports HTMLTemplateElement 3530/head
南漂一卒 [Sun, 29 Jan 2017 22:32:15 +0000 (06:32 +0800)]
Traversing: $.fn.contents() supports HTMLTemplateElement

Fixes gh-3436
Closes gh-3462

7 years agoEvent: Add radio click triggering tests
Alex Padilla [Wed, 11 Jan 2017 22:19:30 +0000 (15:19 -0700)]
Event: Add radio click triggering tests

Ref b442abacbb8464f0165059e8da734e3143d0721f
Ref gh-3423

7 years agoEvent: Trigger checkbox and radio click events identically
Alex Padilla [Wed, 11 Jan 2017 22:19:30 +0000 (15:19 -0700)]
Event: Trigger checkbox and radio click events identically

Fixes gh-3423
Closes gh-3494

7 years agoEffects: Resolve issues revealed by recent Callbacks fix
Richard Gibson [Mon, 16 Jan 2017 18:18:49 +0000 (10:18 -0800)]
Effects: Resolve issues revealed by recent Callbacks fix

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