Commit Graph

6137 Commits

Author SHA1 Message Date
Oleg Gaidarenko
02c5e2908c Build: Don't use ESLint 3.x
Since it is not supported by older node versions :/
2016-07-09 02:05:15 +03:00
Oleg Gaidarenko
522f546d96 Build: More ESLint related changes 2016-07-09 00:49:43 +03:00
Timmy Willison
93f706200c
Build: Updating the master version to 3.1.1-pre. 2016-07-07 17:46:08 -04:00
Timmy Willison
90bf85631d
Build: ignore cdn and slim files when linting 2016-07-07 17:29:24 -04:00
Timmy Willison
97d502f5b4
Build: Updating the master version to 3.1.0-pre. 2016-07-07 15:46:40 -04:00
Michał Gołębiowski
ad6a94c3f1 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
2016-07-07 10:23:06 +02:00
Oleg Gaidarenko
25d8ccd111 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
2016-06-22 19:41:57 +04:00
Oleg Gaidarenko
58c6ca9822 Build: ESLint details
Use eslint pragmas, fix new errors, etc

Closes gh-3148
2016-06-11 10:41:33 +03:00
Oleg Gaidarenko
a4474c9a00 Tests: Move promise/A+ adapters for tests to dedicated folder 2016-06-11 10:39:51 +03:00
Oleg Gaidarenko
f80ae67c53 Build: Switch from jscs+jshint to eslint 2016-06-11 10:39:51 +03:00
Timmy Willison
019c8f1f41 Build: Updating the master version to 3.0.1-pre. 2016-06-09 14:33:16 -04:00
Scott González
7d21f02b9e Event: Add the most commonly used pointer event properties
Ref gh-3104
Close gh-3152
2016-06-09 13:16:20 -04:00
Michał Gołębiowski
d5dae259eb 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
2016-06-09 14:53:34 +02:00
Michał Gołębiowski
e06fda69f0 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
2016-06-03 22:48:43 +02:00
Michał Gołębiowski
5430c540df 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.
2016-06-03 11:51:33 +02:00
Michał Gołębiowski
f9ea869ab5 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.
2016-06-03 11:51:33 +02:00
Dave Methvin
2df590e4ec Event: Allow constructing a jQuery.Event without a target
Fixes gh-3139
Closes gh-3140
2016-06-02 20:56:47 -04:00
Michał Gołębiowski
73bf35ecf3 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
2016-05-29 21:42:54 +02:00
Michał Gołębiowski
63a303f739 Docs: Use HTTPS URLs for jsfiddle & jsbin 2016-05-20 22:16:17 +02:00
Michał Gołębiowski
cfa4bfbf2a Docs: Tweak formatting of ISSUE_TEMPLATE.md 2016-05-20 22:14:45 +02:00
Timmy Willison
947d495ce1 Release: update AUTHORS.txt 2016-05-20 14:16:33 -04:00
Oleg Gaidarenko
94efb79929 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
2016-05-19 21:56:39 +04:00
Christophe Tafani-Dereeper
69db408d82 CSS: Remove units from a 0 width/height element
Close gh-3122
2016-05-16 10:46:47 -04:00
Timmy Willison
95c7ab6897 Release: remove extraneous files from dist during release
Fixes gh-3094
Close gh-3116
2016-05-13 11:35:15 -04:00
Timmy Willison
5086b3012d Release: copy sizzle separately into an 'external' folder
Fixes gh-2945
2016-05-13 11:35:15 -04:00
Dave Methvin
07c11c03cc 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.
2016-05-11 20:21:04 -04:00
Timmy Willison
b8bd48109c Release: update AUTHORS.txt 2016-05-11 18:13:35 -04:00
Dave Methvin
f5958085cf 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
2016-05-09 12:23:51 -04:00
Richard Gibson
de71e9755f Deferred: Make jQuery.when synchronous when possible
Closes gh-3102
Fixes gh-3100
Closes gh-3105
2016-05-09 12:14:22 -04:00
Richard Gibson
e8825a529b Event: Cover invalid delegation selector edge cases
Ref 7fd36ea145
2016-05-06 22:12:53 -04:00
Felipe Sateler
7fd36ea145 Event: Evaluate delegate selectors at add time
This ensures that invalid selectors throw right away.

Fixes gh-3071
Closes gh-3097
2016-05-06 22:12:20 -04:00
Dave Methvin
931f45fc38 Event: Remove pageX/pageY fill for event object
Fixes gh-3092
CLoses gh-3106

IE8 was the last major browser missing these.
2016-05-06 15:32:12 -04:00
Jason Bedard
e61fccb9d7 Event: Remove fixHooks, propHooks; switch to ES5 getter with addProp
Fixes gh-3103
Fixes gh-1746
Closes gh-2860

- Removes the copy loop in jQuery.event.fix
- Avoids accessing properties such as client/offset/page/screen X/Y
  which may cause style recalc or layouts
- Simplifies adding property hooks to event object
2016-05-04 15:57:25 -04:00
Michał Gołębiowski
7f2ebd2c4d Tests: Make the regex catching Safari 9.0/9.1 more resilient
The word boundary character will prevent iOS from being a false positive.
2016-05-02 23:05:56 +02:00
Michał Gołębiowski
234a2d8280 Tests: take Safari 9.1 into account
Safari 9.1 shares its support test results with Safari 9.0 but it's been
excluded from the regex catching Safari 9.0. This has been fixed.
2016-05-02 22:49:17 +02:00
Richard Gibson
356a3bccb0 Deferred: Separate the two paths in jQuery.when
Single- and no-argument calls act like Promise.resolve.
Multi-argument calls act like Promise.all.

Fixes gh-3029
Closes gh-3059
2016-05-02 12:30:31 -04:00
Ralin Chimev
0bd98b1b13 Ajax: Remove unnecessary use of jQuery.trim
The subsequent .match already ignores leading/trailing space.

Ref gh-3003
Closes gh-3095
2016-04-29 16:27:56 -04:00
Michał Gołębiowski
d3a781d762 Build: Don't lint the built file in the husky precommit hook
The husky Git precommit hook was linting not only the source but also the
built file. Normally it's expected, we want to run basic checks on what's
built but in the precommit hook we're not building the file so we might
be linting some previous, broken version.

Fixes gh-3091
2016-04-29 10:36:57 +02:00
Dave Methvin
dbdc4b761b Docs: Add FAQ to reduce noise in issues 2016-04-27 19:47:50 -04:00
Oleg Gaidarenko
d6e99d9b5e Revert "Effects: Remove additional parameters of easings"
This reverts commit b7a7dea95f.

Fixes #3064
2016-04-27 23:21:56 +03:00
Richard Gibson
7f1e59343b Deferred: Provide explicit undefined context for jQuery.when raw casts
Fixes gh-3082
Closes gh-3084
2016-04-27 15:33:12 -04:00
Damian Senn
9f268caaf4 Event: Make event dispatch optimizable by JavaScript engines
Closes gh-2834

- Do not assign to function parameters
- Do not pass arguments object to other functions
2016-04-27 09:13:16 -04:00
Dave Methvin
df2051cf59 Ajax: Ensure ajaxSettings.traditional is still honored
Fixes gh-3023
Closes gh-3081

Since .param() no longer looks at this setting we need unit tests
to ensure it is still honored by $.ajax().
2016-04-27 09:06:43 -04:00
Alexander K
4f270427d2 Serialize: .param - don't use ajaxSettings.traditional
Ref gh-3023
Closes gh-3030
2016-04-27 09:05:30 -04:00
Michał Gołębiowski
3b356cfde4 Build: Strip the strict-mode related comment in exports/global.js
The comment (& the JSHint pragma) doesn't make sense in the context of the
full built file.

Closes gh-3078
2016-04-26 22:50:22 +02:00
Michał Gołębiowski
0652c4d6a2 Build: Strip excessive "use strict" pragmas when building
Fixes gh-3077
2016-04-26 22:50:18 +02:00
Michał Gołębiowski
ab5ce70cb5 Build: test on Node.js 6 2016-04-26 22:44:11 +02:00
Michał Gołębiowski
ff1a0822f7 CSS: Don't workaround the IE 11 iframe-in-fullscreen sizing issues
IE 11 used to have an issue where if an element inside an iframe was put
in fullscreen mode, the element dimensions started being 100 times too small;
we've added a workaround that would multiply them by 100. However, the IE 11
issue has been unexpectedly fixed and since our detection was really detecting
the browser and not a bug, we've started breaking the browser instead of fixing
it.

Since there's no good way to detect if the bug exists, we have to back the
workaround out completely.

Fixes gh-3041
Refs gh-1764
Refs gh-2401
Refs 90d828bad0
2016-04-26 21:19:54 +02:00
Richard Gibson
f496182216 Tests: Weaken sync-assumption from jQuery.when to jQuery.ready.then 2016-04-26 10:14:53 -04:00
Michał Gołębiowski
305f193aa5 Build: Put all AMD modules in "src/" in strict mode
Fixes gh-3073
2016-04-25 20:25:08 +02:00