Commit Graph

5833 Commits

Author SHA1 Message Date
Michał Gołębiowski
a022da7056 Build: Update grunt-contrib-jshint
JSON needed to be added to JSHint globals as it's not implied by the es3
setting and yet all our supported browsers have it implemented.

(cherry-picked from 1556c4661a)
2015-06-13 23:24:01 +02:00
Oleg Gaidarenko
24a6bb9fe8 Build: remove bower.json lint target
(Cherry-picked from 285cfbfccc)
Ref 26eca143c2
2015-06-11 16:27:24 +03:00
Oleg Gaidarenko
ac23f91cbe Event: correct an unfinished comment 2015-06-05 22:23:59 +03:00
Oleg Gaidarenko
05e54ce798 Event: remove preDispatch hook & simplify "simulate" signature
Ref 3655c4e190
2015-06-05 22:21:26 +03:00
Michał Gołębiowski
e847574fc7 CSS: Don't name the anonymous swap function
IE8 doesn't like named anonymous expressions. Not naming the function
expression reduces the gzipped size by 5 bytes.

In ECMAScript 2015 the function will get the name inferred from the
variable name (here: swap) anyway.

Refs 02a9d9f94b
2015-06-01 19:58:21 +02:00
Gilad Peleg
8bf81d76d1 Build: Update the license attribute
Specifying the type and URL is deprecated:

https://docs.npmjs.com/files/package.json#license
http://npm1k.org/

(cherry-picked from 8e92e1ea3c)

Fixes gh-2331
Closes gh-2330
2015-06-01 19:35:19 +02:00
Michał Gołębiowski
ceeaaeb45e Ajax: Remove remnants of the load event alias handling
(cherry-picked from 38a669735d)

Refs 0705be4750
Refs gh-2287
Closes gh-2362
2015-06-01 19:13:06 +02:00
Michał Gołębiowski
42ea746825 CSS: Don't cache unrecognized CSS property names
This prevents jQuery from caching a prefixed property name if provided
directly by the user, e.g. the following code:

	elem.css( "msTransform", "translate(5px, 2px)" );

should not prevent one from from later setting the transition directly:

	elem.css( "transform", "translate(5px, 2px)" );

on a browser not understanding the unprefixed version which is the case
for Safari 8 & transform.

(cherry-picked from d471842b3e)

Fixes gh-2015
Closes gh-2298
2015-06-01 14:25:14 +02:00
Oleg Gaidarenko
37c3d08782 Event: improve originalEvent hack
Ref 6df669f0fb
Ref gh-2336
2015-05-29 20:33:08 +03:00
Oleg Gaidarenko
e6a492d3b6 Docs: remove redundant instruction from the readme
(Cherry-picked from 3c92770867)
Thanks @elas7

Fixes gh-2359
2015-05-29 19:46:00 +03:00
Oleg Gaidarenko
a9296dffb0 Build: update requirejs dependency to 2.1.17
Fixes gh-2290
Ref a644101ed0
2015-05-19 18:52:55 +03:00
Michał Gołębiowski
bd699cb17b Ajax: Fix the XHR fallback logic for IE8
The logic for IE8 has been incorrectly reversed: every non-local request
outside of the whitelist was run via the native XHR. This commit reverses
this logic and adds back a fallback to the ActiveX XHR if the native one
fails even after the regex detection.

Refs 61f812b7e7
2015-05-19 14:06:15 +02:00
Oleg Gaidarenko
ef30bdf4f1 Event: remove deprecated event aliases
(Cherry-picked from 0705be4750)
Fixes gh-2286
Closes gh-2287
Ref trac-11733
2015-05-19 13:47:17 +03:00
Oleg Gaidarenko
57fb2dc02e Attributes: don't test SVG CSS-class manipulation in IE8
Ref 20aaed367f
2015-05-19 13:47:11 +03:00
Oleg Gaidarenko
401a351bd2 Event: provide verbose info for focus(in | out) & rename support props
Ref c074006a69
Ref gh-2312
2015-05-19 13:46:34 +03:00
Michał Gołębiowski
8d88cd599f Ajax: Rename Spartan to Edge in a comment 2015-05-18 23:03:53 +02:00
Michał Gołębiowski
61f812b7e7 Ajax: Use the native XHR for all non-local requests in IE9+
IE throws an error on cross-domain PATCH requests if issued via the ActiveX
interface. This commit switches the logic to use the native XHR in all
non-local requests.

Fixes gh-1684
Closes gh-2183
2015-05-18 22:26:00 +02:00
Chris Rebert
3699ef4632 Build: bower.json: remove moot version field
Related:
a325da3d79

Close gh-2304
2015-05-13 12:29:29 -04:00
Richard McDaniel
0654711e0d Offset: account for scroll when calculating position
Fixes gh-1708
Close gh-1714
2015-05-12 10:36:45 -04:00
Timmy Willison
b35bea14a9 Core: remove custom ready event
Fixes gh-2264
Close gh-2265
2015-05-12 10:29:07 -04:00
Timmy Willison
b5b0d72774 Attributes: add SVG class manipulation
- Note: support for SVG is limited in jQuery,
  but this is one area where the cost vs benefit ratio
  was acceptable.

Fixes gh-2199
Close gh-2268
2015-05-12 10:24:42 -04:00
Timmy Willison
cbd51c50b3 Tests: fix tests in accordance with new :visible behavior 2015-05-12 10:06:42 -04:00
Timmy Willison
dd816dbac1 CSS: fix :visible/:hidden selectors for inline element w/ content
- Reverts behavior from 10399dd, which we never released.
  BR and inline elements are considered visible.
- The possibility of dropping .offsetWidth and .offsetHeight
  was debunked by this perf:
  http://jsperf.com/visible-hidden-and-getclientrects

Fixes gh-2227
Close gh-2281
2015-05-12 10:06:42 -04:00
Michał Gołębiowski
fe2a584ed6 Core: Align code in intro.js with master
Since we're testing the factory code from intro.js on master only it's best
to have those two files almost identical.

This commit leaves only one difference between them: "jQuery Compat" vs.
"jQuery" in the second line.

Closes gh-2294
2015-05-12 11:57:30 +02:00
Richard Gibson
9df8bd205a CSS: Ignore the CSS cascade in show()/hide()/etc.
Fixes gh-1767
Fixes gh-2071
Closes gh-2180

(cherry picked from commit 86419b10bf)

Conflicts:
	src/css.js
	src/css/defaultDisplay.js
	src/effects.js
	test/data/testsuite.css
	test/unit/css.js
	test/unit/effects.js
2015-05-11 13:01:13 -04:00
Timmy Willison
d18b645788 Build: append "+compat" to tag version and jQuery.fn.jquery
Fixes gh-2269
Close gh-2270
2015-05-07 10:31:30 -07:00
Timmy Willison
590eff6397 Manipulation: privatize internal domManip() function
Fixes gh-2225
2015-05-05 12:14:21 -07:00
Timmy Willison
63c1414a54 Manipulation: privatize buildFragment() function
Fixes gh-2224
2015-05-05 12:12:14 -07:00
Timmy Willison
b9b5c23fd7 Effects: add tests for jQuery.easing._default in Animation and Tween
Ref gh-2219
2015-05-05 11:26:14 -07:00
Timmy Willison
b7f9e62642 Effects: set default easing using jQuery.easing._default
Fixes gh-2219
Close gh-2218
2015-05-05 10:26:02 -07:00
Mu Haibao
d6933917d2 Core: remove isArraylike check for nodes
Fixes gh-2238
Close gh-2243
2015-05-05 10:22:23 -07:00
Calvin Metcalf
a16b77fb89 Build: Remove npm from dependencies
Close gh-2254
2015-05-05 10:20:08 -07:00
Timmy Willison
dc49f62f22 Offset: allow offset setter to throw for disconnected elements
Fixes gh-2114
2015-05-05 09:00:41 -07:00
Timmy Willison
a2386a8250 Offset: remove ownerDocument check in offset getter
Fixes gh-2115
2015-05-05 09:00:37 -07:00
Arthur Stolyar
d4dd548aca Offset: Fix .offset() to correctly work with ShadowDOM
Fixes gh-1784
Close gh-2043
2015-05-05 09:00:27 -07:00
Timmy Willison
17ce9edf1e Selector: add test for jQuery.unique() alias 2015-05-05 07:59:26 -07:00
Timmy Willison
d9d930f79e Selector: add jQuery.uniqueSort; deprecate jQuery.unique
Fixes gh-2228
2015-05-04 15:28:44 -07:00
Timmy Willison
c916aef84f Core: allow init to accept an alternate rootjQuery for migrate's sake
- This will be tested in migrate

Fixes gh-2101
2015-05-04 15:17:56 -07:00
Timmy Willison
cf16f860b0 Data: camelCasing should not ignore case
Fixes gh-2070
2015-05-04 10:49:52 -04:00
Timmy Willison
0204c3089e Data: always camelCase keys in .data()
- This effectively implements our "Embrace HTML5" option
- Related: http://goo.gl/GcQAtn

Fixes gh-2257
2015-05-04 10:41:44 -04:00
Timmy Willison
e185aa3f06 CSS: fix dependency order for amd 2015-05-04 10:41:44 -04:00
Timmy Willison
a254f22d7b Data: do not include digits when camelCasing
Fixes gh-1751
2015-05-04 10:41:43 -04:00
Oleg Gaidarenko
49bce47124 Core:CSS:Event: simplification of native method signatures
* Remove third argument from "addEventListener"

* Remove third argument from "removeEventListener"

* Remove second argument from "getComputedStyle"

Ref gh-2047
Ref 85577a348a
2015-05-03 13:59:18 +03:00
Oleg Gaidarenko
4632e55870 Ajax: remove "onunload" event handler
Remove hack for IE lost connections, update for it was released
by Microsoft at November 12, 2013.
See https://support.microsoft.com/en-us/kb/2905733

Ref trac-5280
Ref gh-2047
Ref a117dd05f6
2015-05-03 13:58:28 +03:00
Oleg Gaidarenko
0fc5bebb63 Event: add support comment
(cherry-picked from 9db9316609)

Ref gh-2047
2015-05-03 13:58:16 +03:00
Oleg Gaidarenko
1a067a49d1 Event: remove guard for falsy handler argument of jQuery#on method
(cherry-picked from fac67a9842)

Since we don't have this in off method and its a common perception
that this is a rudiment code

Ref gh-2248
Closes gh-2249
2015-05-03 13:57:55 +03:00
Richard Gibson
fb25bacf9b Manipulation: Make an HTML interception point
Fixes gh-1747
Closes gh-2203

(cherry picked from commit 225bde37c9)

Conflicts:
	src/manipulation.js
	test/unit/manipulation.js
2015-04-30 13:16:28 -04:00
Richard Gibson
4cafb58ba4 Manipulation: Detect sneaky no-content replaceWith input
Fixes gh-2204
Ref 642e9a4557
Closes gh-1752
Closes gh-2206

(cherry picked from commit 4b27ae16a2)

Conflicts:
	src/manipulation.js
	test/unit/manipulation.js
2015-04-30 11:37:01 -04:00
Timmy Willison
1e7a2f3674 Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
2015-04-29 18:03:32 -04:00
Michał Gołębiowski
c0a07778fd Tests: Increase QUnit timeout
Android 2.3 is very slow & times out a lot in async tests, they have to be
restarted multiple times to settle. Long test execution is not a huge problem
as Android 2.3 is tested only periodically during the night, unstable tests
are a bigger problem. This might mitigate that.

In a regular scenario almost all tests should pass so increasing the timeout
for all browsers shouldn't have a huge impact on overall test time.

(cherry-picked from ff18d8e206)

Closes gh-2232
2015-04-27 20:38:12 +02:00