]> source.dussan.org Git - jquery.git/log
jquery.git
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

7 years agoManipulation: Restrict the tbody search to child nodes
Richard Gibson [Mon, 9 Jan 2017 19:37:12 +0000 (11:37 -0800)]
Manipulation: Restrict the tbody search to child nodes

For performance, use a querySelectorAll path instead of Javascript iteration.
http://codepen.io/anon/pen/vywJjx?editors=1010

Fixes gh-3439
Closes gh-3463

7 years agoCallbacks: Prevent add() from unlocking with-memory lists
Richard Gibson [Mon, 9 Jan 2017 19:33:39 +0000 (11:33 -0800)]
Callbacks: Prevent add() from unlocking with-memory lists

Fixes gh-3469
Closes gh-3470

7 years agoTests: Update the loader so test pages always get jQuery
Richard Gibson [Mon, 9 Jan 2017 19:23:47 +0000 (11:23 -0800)]
Tests: Update the loader so test pages always get jQuery

Pages used for iframe tests will now successfully load jQuery, even when
opened directly in the browser.

Closes gh-3489

7 years agoBuild: fix markerPattern and ticketPattern regexes in package.json
Alexander Lisianoi [Mon, 9 Jan 2017 16:45:30 +0000 (20:45 +0400)]
Build: fix markerPattern and ticketPattern regexes in package.json

Commit messages used to fail the style check if they contained a word
starting with "ref", like reformat or reference, in their message body.

Close gh-3437
Ref jzaefferer/commitplease#91

7 years agoDocs: Correct typo in issue template
Alex Louden [Thu, 5 Jan 2017 08:49:02 +0000 (16:49 +0800)]
Docs: Correct typo in issue template

7 years agoBuild: Drop support for building on Node.js 0.12 3478/head
Michał Gołębiowski [Fri, 30 Dec 2016 11:17:00 +0000 (12:17 +0100)]
Build: Drop support for building on Node.js 0.12

Node.js 0.12 is no longer supported by upstream. So far we had to keep
a workaround that would skip running ESLint there (or even load its task)
as it no longer supports Node.js <4; the same applied to Node smoke tests
as jsdom has also dropped support for those old Node versions. Those
workarounds have been removed now.

Ref 030191ae32dfcb7ecb2efb61d17a4964a3633e44
Closes gh-3478

7 years agoTests: Added tests for symbol-separated tag names
David Broder-Rodgers [Sat, 24 Dec 2016 10:33:27 +0000 (10:33 +0000)]
Tests: Added tests for symbol-separated tag names

Fixes gh-2006
Closes gh-3473

7 years agoOffset: Eliminate little-used internal function
Richard Gibson [Mon, 19 Dec 2016 17:00:46 +0000 (12:00 -0500)]
Offset: Eliminate little-used internal function

Fixes gh-3449
Closes gh-3456

7 years agoBuild: Use valid ecmaVersion
Richard Gibson [Mon, 19 Dec 2016 16:58:48 +0000 (11:58 -0500)]
Build: Use valid ecmaVersion

Fixes Node smoke tests

Ref gh-3385
Closes gh-3460

7 years agoBuild: Add most of the dist folder to .eslintignore 3385/head
Michał Gołębiowski [Wed, 30 Nov 2016 14:32:29 +0000 (15:32 +0100)]
Build: Add most of the dist folder to .eslintignore

This way `eslint .` run from the terminal will work regardless of ignored
files present in the repository.

Closes gh-3385

7 years agoBuild: Drop jscs.json from .npmignore
Michał Gołębiowski [Mon, 7 Nov 2016 17:20:46 +0000 (18:20 +0100)]
Build: Drop jscs.json from .npmignore

The file doesn't exist anymore.

7 years agoBuild: ESLint setup improvements
Michał Gołębiowski [Wed, 2 Nov 2016 23:51:34 +0000 (00:51 +0100)]
Build: ESLint setup improvements

1. Use the short name of the preset in the config.
2. Run ESLint first on non-minified files.
3. Explicitly specify environments in every config file (those settings cascade
which means we've been assuming a Node.js environment where we shouldn't have).

7 years agoDeferred: Stop inventing jQuery.when() resolution values
Richard Gibson [Fri, 16 Dec 2016 16:45:35 +0000 (11:45 -0500)]
Deferred: Stop inventing jQuery.when() resolution values

Fixes gh-3442
Closes gh-3445

7 years agoOffset: report offset for 0 sized elements
Jason Bedard [Tue, 13 Dec 2016 06:32:11 +0000 (22:32 -0800)]
Offset: report offset for 0 sized elements

Fixes gh-3267
Closes gh-3367

7 years agoBuild: Make the @CODE-replacing regex more robust
Michał Gołębiowski [Sun, 4 Dec 2016 00:16:36 +0000 (01:16 +0100)]
Build: Make the @CODE-replacing regex more robust

The code replacing @CODE in wrapper.js was written so that it expected
both the code and the next line to start in the first column. This commit
adjusts the regex so to get rid of that assumption and to work properly
regardless of number of lines with comments after this block.

While this is technically not necessary for our code, contributors sometimes
re-format the wrapper file in their pull requests and the error
messages they get don't tell them what's the real problem with their code.

Closes gh-3429

7 years agoBuild: jQuery Foundation -> JS Foundation
Timmy Willison [Mon, 28 Nov 2016 16:11:30 +0000 (11:11 -0500)]
Build: jQuery Foundation -> JS Foundation

Close gh-3414

7 years agoCore: Deprecate jQuery.isArray
Manoj Kumar [Sun, 14 Aug 2016 10:54:16 +0000 (10:54 +0000)]
Core: Deprecate jQuery.isArray

Fixes gh-2961
Closes gh-3278

8 years agoBuild: Stop testing on Node.js 0.10
Michał Gołębiowski [Mon, 31 Oct 2016 17:38:35 +0000 (18:38 +0100)]
Build: Stop testing on Node.js 0.10

Node.js 0.10 loses upstream support today (see https://github.com/nodejs/LTS/)
so let's stop testing against it as well.

8 years agoDocs: Remove supported jQuery versions from ISSUE_TEMPLATE.md
Michał Gołębiowski [Fri, 21 Oct 2016 18:55:21 +0000 (20:55 +0200)]
Docs: Remove supported jQuery versions from ISSUE_TEMPLATE.md

We no longer support jQuery 1.x/2.x and mentioning 3.x would just mean the text
gets out of date once we release jQuery 4. We only really support the latest
jQuery version so let's make that clear.

Closes gh-3372

8 years agoBuild: Run tests on Node.js 7
Michał Gołębiowski [Wed, 26 Oct 2016 10:08:14 +0000 (12:08 +0200)]
Build: Run tests on Node.js 7

8 years agoBuild: Updating the master version to 3.1.2-pre.
Timmy Willison [Thu, 22 Sep 2016 22:32:55 +0000 (18:32 -0400)]
Build: Updating the master version to 3.1.2-pre.

8 years agoRelease: fix quotes for releasing on Windows
Timmy Willison [Thu, 22 Sep 2016 21:55:01 +0000 (17:55 -0400)]
Release: fix quotes for releasing on Windows

8 years agoRelease: add email to .mailmap, update AUTHORS
Timmy Willison [Thu, 22 Sep 2016 20:12:14 +0000 (16:12 -0400)]
Release: add email to .mailmap, update AUTHORS

- Not sure how that got there. I did check the privacy box at one point,
but can't find any commits with that email

8 years agoCore: remove precautionary variable `readyFiring`
Steve Mao [Sun, 21 Aug 2016 00:43:22 +0000 (10:43 +1000)]
Core: remove precautionary variable `readyFiring`

Close gh-3284

8 years agoBuild: Make sourcemap updates in two .replace() passes
Dave Methvin [Mon, 19 Sep 2016 02:07:34 +0000 (22:07 -0400)]
Build: Make sourcemap updates in two .replace() passes

Fixes gh-3260
Closes gh-3321

8 years agoTests: Add test results for Safari 10/iOS 10, remove for Safari 8
Michał Gołębiowski [Mon, 19 Sep 2016 16:55:12 +0000 (18:55 +0200)]
Tests: Add test results for Safari 10/iOS 10, remove for Safari 8

8 years agoCore: Compress stripAndCollapse
Richard Gibson [Fri, 16 Sep 2016 02:42:34 +0000 (22:42 -0400)]
Core: Compress stripAndCollapse

Close gh-3318

8 years agoCore: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapse
Timmy Willison [Mon, 12 Sep 2016 16:32:02 +0000 (12:32 -0400)]
Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapse

- 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

8 years agoBuild: Update promises-aplus-tests for compat with Node 7
Michał Gołębiowski [Mon, 12 Sep 2016 17:27:56 +0000 (19:27 +0200)]
Build: Update promises-aplus-tests for compat with Node 7

The older promises-aplus-tests was relying on old Mocha that, in turn,
used an obsolete graceful-fs version that is not guaranteed to work fine
with the upcoming Node 7 and later.

8 years agoTests: Disable a whitespace-setting test in Edge 14
Michał Gołębiowski [Mon, 12 Sep 2016 16:36:48 +0000 (18:36 +0200)]
Tests: Disable a whitespace-setting test in Edge 14

Working around this problem would require us to skip setting whitespace-only
values except when they're valid which would be very fragile. Another option
would be to set the value and see if it succeeded and then react to that.

We've tried something like that in the past to be able to overwrite !important
styles (see 24e5879) but it broke the CSS cascade (see
https://bugs.jquery.com/ticket/14836#comment:5) and was triggering
MutationObserver callbacks too often so it was reverted in PR gh-1532.

Ref gh-3204
Ref gh-1532

8 years agoCore: expose noConflict in AMD mode 3279/head
Timmy Willison [Mon, 15 Aug 2016 15:41:11 +0000 (11:41 -0400)]
Core: expose noConflict in AMD mode

- For compability reasons, we had already added the global
  in AMD mode, but without noConflict. This adds back noConflict
  to AMD (which fixes noConflict mode in the tests).

Fixes gh-2930

8 years agoTraversing: Let .not(arraylike) pass non-element nodes
Dave Methvin [Tue, 2 Aug 2016 20:41:34 +0000 (16:41 -0400)]
Traversing: Let .not(arraylike) pass non-element nodes

Fixes gh-3226
Closes gh-3261

8 years agoBuild: Update Sizzle to 2.3.3 3266/head 3267/head
Richard Gibson [Mon, 8 Aug 2016 18:05:43 +0000 (14:05 -0400)]
Build: Update Sizzle to 2.3.3

Fixes gh-3263

8 years agoBuild: Update Sizzle to 2.3.2
Richard Gibson [Mon, 8 Aug 2016 16:35:26 +0000 (12:35 -0400)]
Build: Update Sizzle to 2.3.2

8 years agoAjax: Don't mangle the URL when removing the anti-cache param
Dave Methvin [Fri, 29 Jul 2016 19:50:07 +0000 (15:50 -0400)]
Ajax: Don't mangle the URL when removing the anti-cache param

Fixes gh-3229
Closes gh-3253

8 years agoBuild: Update Sizzle to 2.3.1
Richard Gibson [Mon, 8 Aug 2016 15:59:14 +0000 (11:59 -0400)]
Build: Update Sizzle to 2.3.1

Fixes gh-3224

8 years agoEvent: Optimize delegated event processing
Richard Gibson [Mon, 1 Aug 2016 18:20:38 +0000 (14:20 -0400)]
Event: Optimize delegated event processing

Closes gh-3255

8 years agoBuild: .eslintrc -> .eslintrc.json
Oleg Gaidarenko [Fri, 29 Jul 2016 19:18:58 +0000 (22:18 +0300)]
Build: .eslintrc -> .eslintrc.json

`.eslintrc` format is deprecated -
http://eslint.org/docs/user-guide/configuring#configuration-file-formats

Fixes gh-3248
Closes gh-3247

8 years agoBuild: Simplify Gruntfile constructions
Oleg Gaidarenko [Mon, 25 Jul 2016 23:53:57 +0000 (02:53 +0300)]
Build: Simplify Gruntfile constructions

Fixes gh-3246

8 years agoBuild: add new email to mailmap
Timmy Willison [Tue, 2 Aug 2016 16:04:21 +0000 (12:04 -0400)]
Build: add new email to mailmap

8 years agoBuild: Don't lint every file in dist/ (#3245)
Michał Gołębiowski [Mon, 25 Jul 2016 23:22:53 +0000 (01:22 +0200)]
Build: Don't lint every file in dist/ (#3245)

Currently the "all" target for the eslint task includes way more than
the "dev" & "dist" targets combined and those 2 tasks are the one run in
`npm test`.

8 years agoBuild: use commitplease via husky, prohibit #NNNN github-style tickets
Alexander Lisianoi [Thu, 16 Jun 2016 09:42:26 +0000 (11:42 +0200)]
Build: use commitplease via husky, prohibit #NNNN github-style tickets

Closes gh-3176

8 years agoBuild: Update eslint config and fix associated errors
Oleg Gaidarenko [Fri, 15 Jul 2016 17:42:25 +0000 (21:42 +0400)]
Build: Update eslint config and fix associated errors

8 years agoBuild: Upgrade ESLint to 3.x again 3225/head
Michał Gołębiowski [Mon, 11 Jul 2016 17:22:48 +0000 (19:22 +0200)]
Build: Upgrade ESLint to 3.x again

ESLint is now skipped in Node older than 4.x so we're safe.

Refs gh-3222

8 years agoBuild: Skip running ESLint on Node.js 0.x
Michał Gołębiowski [Mon, 11 Jul 2016 17:21:57 +0000 (19:21 +0200)]
Build: Skip running ESLint on Node.js 0.x

ESLint 3.0 drops support for Node.js older than 4.x. To be able to update
to this version and yet not block our contributors from building jQuery
on older Node.js (at least until it's supported by upstream) this commit
makes ESLint skipped on older Node; a proper message is displayed then.

Fixes gh-3222

8 years agoBuild: Fix the regex removing the ESLint comment from wrapper.js
Michał Gołębiowski [Wed, 13 Jul 2016 08:49:13 +0000 (10:49 +0200)]
Build: Fix the regex removing the ESLint comment from wrapper.js

The new regex from after the switch from JSHint to ESLint wasn't catching
the ESLint pragma correctly.

Also, the spacing of the pragma comment was updated to match other comments.

8 years agoBuild: Don't use ESLint 3.x
Oleg Gaidarenko [Fri, 8 Jul 2016 23:05:15 +0000 (02:05 +0300)]
Build: Don't use ESLint 3.x

Since it is not supported by older node versions :/

8 years agoBuild: More ESLint related changes
Oleg Gaidarenko [Fri, 8 Jul 2016 21:46:58 +0000 (00:46 +0300)]
Build: More ESLint related changes

8 years agoBuild: Updating the master version to 3.1.1-pre.
Timmy Willison [Thu, 7 Jul 2016 21:46:08 +0000 (17:46 -0400)]
Build: Updating the master version to 3.1.1-pre.

8 years agoBuild: ignore cdn and slim files when linting
Timmy Willison [Thu, 7 Jul 2016 21:29:24 +0000 (17:29 -0400)]
Build: ignore cdn and slim files when linting

8 years agoBuild: Updating the master version to 3.1.0-pre.
Timmy Willison [Thu, 7 Jul 2016 19:46:40 +0000 (15:46 -0400)]
Build: Updating the master version to 3.1.0-pre.

8 years agoCore: Re-throw errors that happened in callbacks wrapped in jQuery ready 3210/head
Michał Gołębiowski [Wed, 29 Jun 2016 12:19:04 +0000 (14:19 +0200)]
Core: Re-throw errors that happened in callbacks wrapped in jQuery ready

Also, expose jQuery.readyException that allows to overwrite the default
ready error handler.

Fixes gh-3174
Closes gh-3210

8 years agoBuild: Improve ESLint configuration (#3188)
Oleg Gaidarenko [Wed, 22 Jun 2016 15:41:57 +0000 (19:41 +0400)]
Build: Improve ESLint configuration (#3188)

* Bump eslint-config-jquery package to 0.1.4 version

* Add subtask "dist" to "eslint" task and add it to the build task list

* Make gitignore globs more flexible for the "dist" folder

Fixes gh-3169

8 years agoBuild: ESLint details 3148/head
Oleg Gaidarenko [Tue, 10 May 2016 09:12:28 +0000 (12:12 +0300)]
Build: ESLint details

Use eslint pragmas, fix new errors, etc

Closes gh-3148

8 years agoTests: Move promise/A+ adapters for tests to dedicated folder
Oleg Gaidarenko [Sat, 11 Jun 2016 07:30:12 +0000 (10:30 +0300)]
Tests: Move promise/A+ adapters for tests to dedicated folder

8 years agoBuild: Switch from jscs+jshint to eslint
Oleg Gaidarenko [Tue, 10 May 2016 09:06:37 +0000 (12:06 +0300)]
Build: Switch from jscs+jshint to eslint

8 years agoBuild: Updating the master version to 3.0.1-pre.
Timmy Willison [Thu, 9 Jun 2016 18:33:16 +0000 (14:33 -0400)]
Build: Updating the master version to 3.0.1-pre.

8 years agoEvent: Add the most commonly used pointer event properties
Scott González [Wed, 8 Jun 2016 13:08:47 +0000 (09:08 -0400)]
Event: Add the most commonly used pointer event properties

Ref gh-3104
Close gh-3152

8 years agoDeferred: Propagate progress correctly from unwrapped promises 3150/head
Michał Gołębiowski [Wed, 8 Jun 2016 12:22:13 +0000 (14:22 +0200)]
Deferred: Propagate progress correctly from unwrapped promises

Progress parameters are now correctly propagated from a deferred to which
another deferred resolved unwrapping it.

Thanks to @gibson042 for the report and a clear description of the problem
and the needed fix.

Fixes gh-3062
Closes gh-3150

8 years agoAttributes: Avoid infinite recursion on non-lowercase attribute getters 3134/head
Michał Gołębiowski [Sun, 29 May 2016 20:24:28 +0000 (22:24 +0200)]
Attributes: Avoid infinite recursion on non-lowercase attribute getters

Attribute hooks are determined for the lowercase versions of attribute names
but this has not been reflected in the bool attribute hooks. The code that
temporarily removed a handler to avoid an infinite loop was removing an
incorrect handler causing stack overflow.

Fixes gh-3133
Refs gh-2914
Refs gh-2916
Closes gh-3134

8 years agoDocs: Fix an incorrect comment in the attributes module
Michał Gołębiowski [Sun, 29 May 2016 21:08:37 +0000 (23:08 +0200)]
Docs: Fix an incorrect comment in the attributes module

Attributes are no longer always treated as lowercase, although hooks for
them are. This commit fixes a no longer correct comment.

8 years agoTests: Remove side-effects of one attributes test
Michał Gołębiowski [Sun, 29 May 2016 20:50:28 +0000 (22:50 +0200)]
Tests: Remove side-effects of one attributes test

One test in the attribute module was overwriting jQuery.expr.attrHandle.checked
and wasn't restoring the original state after it finished. It started causing
issues for another checked-related test.

8 years agoEvent: Allow constructing a jQuery.Event without a target 3141/head
Dave Methvin [Thu, 2 Jun 2016 22:33:47 +0000 (18:33 -0400)]
Event: Allow constructing a jQuery.Event without a target

Fixes gh-3139
Closes gh-3140

8 years agoBuild: Drop testing on Node.js 5
Michał Gołębiowski [Sun, 29 May 2016 19:42:54 +0000 (21:42 +0200)]
Build: Drop testing on Node.js 5

Node.js 5's upstream support ends in about a month, there is not much point
in testing it when we're releasing a new major version of jQuery

8 years agoDocs: Use HTTPS URLs for jsfiddle & jsbin
Michał Gołębiowski [Fri, 20 May 2016 20:16:17 +0000 (22:16 +0200)]
Docs: Use HTTPS URLs for jsfiddle & jsbin

8 years agoDocs: Tweak formatting of ISSUE_TEMPLATE.md
Michał Gołębiowski [Fri, 20 May 2016 20:14:45 +0000 (22:14 +0200)]
Docs: Tweak formatting of ISSUE_TEMPLATE.md

8 years agoRelease: update AUTHORS.txt
Timmy Willison [Fri, 20 May 2016 18:16:33 +0000 (14:16 -0400)]
Release: update AUTHORS.txt

8 years agoEvents: don't execute native stop(Immediate)Propagation from simulation
Oleg Gaidarenko [Thu, 19 May 2016 17:56:39 +0000 (21:56 +0400)]
Events: don't execute native stop(Immediate)Propagation from simulation

In Firefox, called `stop(Immediate)Propagation` methods,
in capturing phase prevents receiving focus

Fixes gh-3111

8 years agoCSS: Remove units from a 0 width/height element
Christophe Tafani-Dereeper [Mon, 16 May 2016 12:44:45 +0000 (14:44 +0200)]
CSS: Remove units from a 0 width/height element

Close gh-3122

8 years agoRelease: remove extraneous files from dist during release
Timmy Willison [Mon, 9 May 2016 17:53:03 +0000 (13:53 -0400)]
Release: remove extraneous files from dist during release

Fixes gh-3094
Close gh-3116

8 years agoRelease: copy sizzle separately into an 'external' folder
Timmy Willison [Mon, 9 May 2016 15:57:31 +0000 (11:57 -0400)]
Release: copy sizzle separately into an 'external' folder

Fixes gh-2945

8 years agoDeferred: Give better stack diagnostics on exceptions
Dave Methvin [Wed, 11 May 2016 01:50:00 +0000 (21:50 -0400)]
Deferred: Give better stack diagnostics on exceptions

Ref gh-2736

The exception stack has the name of the immediately outer function where the
exception occurred, which can be very handy for tracing errors. Since we already
have the exception object we might as well use it.

8 years agoRelease: update AUTHORS.txt
Timmy Willison [Mon, 9 May 2016 18:17:01 +0000 (14:17 -0400)]
Release: update AUTHORS.txt

8 years agoEvent: Add touch event properties, eliminates need for a plugin
Dave Methvin [Thu, 5 May 2016 20:41:42 +0000 (16:41 -0400)]
Event: Add touch event properties, eliminates need for a plugin

Fixes gh-3104
Closes gh-3108

See https://github.com/aarongloege/jquery.touchHooks

Other properties are already present thanks to mouse events.

squash! Add targetTouches