]>
source.dussan.org Git - jquery.git/log
Michał Gołębiowski [Sun, 14 Jun 2015 17:21:57 +0000 (19:21 +0200)]
Core: Use window.setTimeout & friends instead of global equivalents
Fixes gh-2177
Timmy Willison [Tue, 16 Jun 2015 17:24:12 +0000 (13:24 -0400)]
Offset: add tests for hidden elements + scroll
- Also add comments to hidden/disconnected tests noting
this is to ensure consistency between branches
Timmy Willison [Tue, 16 Jun 2015 15:21:58 +0000 (11:21 -0400)]
Offset: return before getBoundingClientRect to avoid error in IE8-11
Timmy Willison [Mon, 15 Jun 2015 15:02:08 +0000 (11:02 -0400)]
Offset: return zeros for disconnected/hidden elements
Fixes gh-2310
Close gh-2396
Timmy Willison [Mon, 15 Jun 2015 14:56:29 +0000 (10:56 -0400)]
Revert "Offset: allow offset setter to throw for disconnected elements"
This reverts commit
0d11c1182f2012cd6eb06ce1e3fa5a495af9bee3 .
Michał Gołębiowski [Tue, 16 Jun 2015 14:25:16 +0000 (16:25 +0200)]
Tests: Remove test/data/ua.txt
The file was used by $.browser tests but $.browser now doesn't exists
in Core and this file hasn't been updated for a few years.
Fixes gh-2398
Michał Gołębiowski [Tue, 16 Jun 2015 12:44:24 +0000 (14:44 +0200)]
Tests: Remove Edge version from the user agent
The version will change in the future, matching by /edge\//i is enough
Refs
8e111df641cca3e1b75b31a1971bfc89014b4ded
Michał Gołębiowski [Sat, 13 Jun 2015 22:50:05 +0000 (00:50 +0200)]
Tests: Add Microsoft Edge results (from Windows 10 build 10130)
The Microsoft Edge user agent contains "Chrome" so it needs to be checked
before Chrome.
Michał Gołębiowski [Sat, 13 Jun 2015 22:37:31 +0000 (00:37 +0200)]
Tests: Correct a typo in the regex matching Safari 8
Michał Gołębiowski [Mon, 1 Jun 2015 19:35:13 +0000 (21:35 +0200)]
Manipulation: Remove an internal argument to the remove method
Fixes gh-2301
Closes gh-2366
Michał Gołębiowski [Mon, 1 Jun 2015 19:34:57 +0000 (21:34 +0200)]
Event: Remove an internal argument to the on method
Refs gh-2301
Michał Gołębiowski [Mon, 1 Jun 2015 21:25:38 +0000 (23:25 +0200)]
Core: Make jQuery objects iterable
Make iterating over jQuery objects possible using ES 2015 for-of:
for ( node of $( "<div id=narwhal>" ) ) {
console.log( node.id ); // "narwhal"
}
Fixes gh-1693
Michał Gołębiowski [Mon, 1 Jun 2015 21:25:38 +0000 (23:25 +0200)]
Build: Refactor Node smoke tests
Utilize the assert module, avoid inline JSHint comments.
Michał Gołębiowski [Mon, 1 Jun 2015 21:25:38 +0000 (23:25 +0200)]
Build: Update grunt-contrib-jshint
Oleg Gaidarenko [Thu, 11 Jun 2015 13:25:36 +0000 (16:25 +0300)]
Build: remove bower.json lint target
Ref
26eca143c2dd857b9e3d1c446a467fed16e903d2
Oleg Gaidarenko [Thu, 28 May 2015 21:51:22 +0000 (00:51 +0300)]
Event: remove preDispatch hook & simplify "simulate" signature
Closes gh-2358
Michał Gołębiowski [Mon, 1 Jun 2015 17:55:18 +0000 (19:55 +0200)]
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.
(cherry-picked from
e847574fc755b5339f3de41bcebd5b2a3e140cfe )
Refs
02a9d9f94b623ea8664b7b39fd57feb7de6c6a14
Gilad Peleg [Tue, 19 May 2015 11:05:21 +0000 (14:05 +0300)]
Build: Update the license attribute
Specifying the type and URL is deprecated:
https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
Fixes gh-2331
Closes gh-2330
Michał Gołębiowski [Sat, 30 May 2015 17:09:32 +0000 (19:09 +0200)]
Ajax: Remove remnants of the load event alias handling
Refs
0705be475092aede1eddae01319ec931fb9c65fc
Refs gh-2287
Closes gh-2362
Michał Gołębiowski [Mon, 11 May 2015 21:23:09 +0000 (23:23 +0200)]
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.
Fixes gh-2015
Closes gh-2298
Oleg Gaidarenko [Wed, 20 May 2015 15:09:46 +0000 (18:09 +0300)]
Event: remove outdated originalEvent hack
Closes gh-2335
Ref
7475d5debeb7c53158921ed40f6c2fdb25a2cc86
Gabriel Schulhof [Tue, 12 May 2015 12:30:05 +0000 (15:30 +0300)]
Event: Remove fake originalEvent from jQuery.Event.simulate
Fixes gh-2300
Closes gh-2303
Oleg Gaidarenko [Fri, 29 May 2015 16:45:02 +0000 (19:45 +0300)]
Docs: remove redundant instruction from the readme
Thanks @elas7
Fixes gh-2359
Oleg Gaidarenko [Tue, 19 May 2015 15:45:14 +0000 (18:45 +0300)]
Build: update requirejs dependency to 2.1.17
Fixes gh-2290
Oleg Gaidarenko [Sat, 9 May 2015 18:39:49 +0000 (21:39 +0300)]
Event: remove deprecated event aliases
Fixes gh-2286
Closes gh-2287
Ref trac-11733
Oleg Gaidarenko [Tue, 12 May 2015 22:15:19 +0000 (01:15 +0300)]
Event: provide verbose comment for focus(in | out) & rename support prop
Closes gh-2312
Chris Rebert [Wed, 13 May 2015 03:13:46 +0000 (20:13 -0700)]
Build: bower.json: remove moot `version` field
Related:
https://github.com/bower/bower.json-spec/commit/
a325da3d79baab018c572d75dc1781b12322f6cd
Close gh-2304
Richard McDaniel [Thu, 16 Oct 2014 19:32:46 +0000 (15:32 -0400)]
Offset: account for scroll when calculating position
Fixes gh-1708
Close gh-1714
Timmy Willison [Wed, 6 May 2015 17:47:07 +0000 (10:47 -0700)]
Core: remove custom ready event
Fixes gh-2264
Close gh-2265
Timmy Willison [Wed, 6 May 2015 20:30:16 +0000 (13:30 -0700)]
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
Timmy Willison [Wed, 6 May 2015 22:29:06 +0000 (15:29 -0700)]
Data: remove the expando when there's no more data
Fixes gh-1760
Close gh-2271
Timmy Willison [Wed, 6 May 2015 22:28:38 +0000 (15:28 -0700)]
Data: remove some unused code
Timmy Willison [Tue, 12 May 2015 13:58:55 +0000 (09:58 -0400)]
Tests: fix tests in accordance with new :visible behavior
Timmy Willison [Fri, 8 May 2015 22:27:54 +0000 (15:27 -0700)]
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
Michał Gołębiowski [Mon, 11 May 2015 20:25:28 +0000 (22:25 +0200)]
CSS: Collapse a double if statement into one
Saves 3 bytes gzipped
Closes gh-2296
Richard Gibson [Thu, 2 Apr 2015 20:57:33 +0000 (16:57 -0400)]
CSS: Ignore the CSS cascade in show()/hide()/etc.
Fixes gh-1767
Fixes gh-2071
Closes gh-2180
Timmy Willison [Wed, 6 May 2015 23:23:00 +0000 (16:23 -0700)]
Build: use different versions of jsdom for Node and iojs testing
Fixes gh-2266
Timmy Willison [Tue, 5 May 2015 18:52:58 +0000 (11:52 -0700)]
Manipulation: privatize internal domManip() function
Fixes gh-2225
Timmy Willison [Tue, 5 May 2015 18:44:55 +0000 (11:44 -0700)]
Manipulation: privatize buildFragment() function
Fixes gh-2224
Timmy Willison [Tue, 5 May 2015 18:22:40 +0000 (11:22 -0700)]
Effects: add tests for jQuery.easing._default in Animation and Tween
Ref gh-2219
Timmy Willison [Tue, 5 May 2015 17:24:20 +0000 (10:24 -0700)]
Effects: set default easing using jQuery.easing._default
Fixes gh-2219
Close gh-2218
Mu Haibao [Wed, 29 Apr 2015 16:53:30 +0000 (00:53 +0800)]
Core: remove isArraylike check for nodes
Fixes gh-2238
Close gh-2243
Calvin Metcalf [Sat, 2 May 2015 13:08:30 +0000 (09:08 -0400)]
Build: Remove npm from dependencies
Close gh-2254
Timmy Willison [Tue, 5 May 2015 15:33:50 +0000 (08:33 -0700)]
Offset: allow offset setter to throw for disconnected elements
Fixes gh-2114
Timmy Willison [Tue, 5 May 2015 15:31:39 +0000 (08:31 -0700)]
Offset: remove ownerDocument check in offset getter
Fixes gh-2115
Arthur Stolyar [Tue, 5 May 2015 15:16:29 +0000 (08:16 -0700)]
Offset: Fix .offset() to correctly work with ShadowDOM
Fixes gh-1784
Close gh-2043
Timmy Willison [Tue, 5 May 2015 14:59:12 +0000 (07:59 -0700)]
Selector: add test for jQuery.unique() alias
Timmy Willison [Mon, 4 May 2015 22:27:12 +0000 (15:27 -0700)]
Selector: add jQuery.uniqueSort; deprecate jQuery.unique
Fixes gh-2228
Timmy Willison [Mon, 4 May 2015 22:16:28 +0000 (15:16 -0700)]
Core: allow init to accept an alternate rootjQuery for migrate's sake
- This will be tested in migrate
Fixes gh-2101
Timmy Willison [Mon, 4 May 2015 14:49:21 +0000 (10:49 -0400)]
Data: camelCasing should not ignore case
Fixes gh-2070
Timmy Willison [Mon, 4 May 2015 13:36:58 +0000 (09:36 -0400)]
Data: always camelCase keys in .data()
- This effectively implements our "Embrace HTML5" option
- Related: http://goo.gl/GcQAtn
Fixes gh-2257
Timmy Willison [Sun, 3 May 2015 12:22:32 +0000 (08:22 -0400)]
Data: do not include digits when camelCasing
Fixes gh-1751
Oleg Gaidarenko [Mon, 27 Apr 2015 06:57:46 +0000 (09:57 +0300)]
Event: remove redundant guards for the event methods
Fixes gh-2047
Closes gh-2125
Oleg Gaidarenko [Mon, 27 Apr 2015 06:49:12 +0000 (09:49 +0300)]
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
Oleg Gaidarenko [Thu, 2 Apr 2015 08:55:57 +0000 (11:55 +0300)]
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
Oleg Gaidarenko [Sun, 8 Mar 2015 04:11:11 +0000 (07:11 +0300)]
Event: add support comment
Ref gh-2047
Oleg Gaidarenko [Thu, 30 Apr 2015 17:05:18 +0000 (20:05 +0300)]
Event: remove guard for falsy handler argument of jQuery#on method
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
Richard Gibson [Fri, 10 Apr 2015 19:57:18 +0000 (15:57 -0400)]
Manipulation: Make an HTML interception point
Fixes gh-1747
Closes gh-2203
Richard Gibson [Mon, 13 Apr 2015 20:05:48 +0000 (16:05 -0400)]
Manipulation: Detect sneaky no-content replaceWith input
Fixes gh-2204
Ref
642e9a45579cfa90861b8ea71a95dd077775caaf
Closes gh-1752
Closes gh-2206
Timmy Willison [Sat, 4 Apr 2015 19:34:07 +0000 (15:34 -0400)]
Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
Michał Gołębiowski [Sun, 26 Apr 2015 17:33:05 +0000 (19:33 +0200)]
Core: Test all factory use cases from intro.js
There is a lot of logic in intro.js; now we test four cases:
1. (implicitly, via QUnit tests) A real browser with window being the global
2. Browserify where there are both global & window variables.
3. Node with jsdom where window is passed manually to the jQuery factory.
4. Pure Node with incorrect window passed; jQuery should throw then.
Previously the second & fourth case was not tested and the third was tested
in a way that interfered with the main test environment.
We now also test if in the Browserify case we're not creating a jQuery global
by default.
Fixes gh-2181
Closes gh-2234
Michał Gołębiowski [Sun, 26 Apr 2015 15:11:10 +0000 (17:11 +0200)]
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.
Closes gh-2232
Michał Gołębiowski [Sun, 26 Apr 2015 15:22:46 +0000 (17:22 +0200)]
Core: Align branches: remove an unused variable, add comments
Closes gh-2233
Richard Gibson [Tue, 14 Apr 2015 17:30:58 +0000 (13:30 -0400)]
Deferred: Always handle progress callbacks before done/fail
Fixes gh-2013
Fixes gh-2010
Closes gh-2210
Bastian Buchholz [Mon, 13 Apr 2015 08:37:42 +0000 (10:37 +0200)]
Attributes: remove unnecessary element null check
Close gh-2201
Alexander O'Mara [Mon, 30 Mar 2015 15:52:00 +0000 (11:52 -0400)]
Core: Follow the AMD specification for define
AMD specification requires the factory argument be defined.
Close gh-2179
Michał Gołębiowski [Mon, 30 Mar 2015 17:19:15 +0000 (19:19 +0200)]
CSS: Don't expose jQuery.swap
jQuery.swap was an undocumented API used only internally. With the modular
AMD system we currently have it's not necessary to expose this function
publicly under the jQuery object.
Fixes gh-2058
Closes gh-2182
Timmy Willison [Mon, 13 Apr 2015 15:30:18 +0000 (11:30 -0400)]
Build: update Sizzle
Fixes gh-2042
Fixes gh-1969
Closes gh-1709
Michał Gołębiowski [Mon, 30 Mar 2015 20:44:18 +0000 (22:44 +0200)]
Docs: Add info about Sizzle not being excludable on the compat branch
Most people just read the README that's displayed to them on GitHub which
is the one for the master branch. Let's include the info about Sizzle
not being excludable there.
Fixes gh-2184
Timmy Willison [Mon, 30 Mar 2015 19:32:54 +0000 (15:32 -0400)]
Attributes: revert returning null for non-existant attributes
Ref https://github.com/jquery/jquery/issues/2118
Dave Methvin [Mon, 12 Jan 2015 03:17:41 +0000 (22:17 -0500)]
Wrap: Support .unwrap( selector) for selective unwrapping
Fixes gh-1744
Closes gh-2003
Michał Gołębiowski [Fri, 20 Mar 2015 15:28:10 +0000 (16:28 +0100)]
Core: Update tested jsdom, drop obsolete workarounds
The latest version supporting Node.js is 3.1.2; some workarounds are not needed
for this version. For example, in jsdom 3.1.2 a document created via
document.implementation.createHTMLDocument( "" ) has a body.
Fixes gh-2153
Closes gh-2154
Michał Gołębiowski [Sat, 28 Mar 2015 15:42:43 +0000 (16:42 +0100)]
Build: Update native-promise-only (again)
This should fix Android 4.0 jQuery.when tests issues, for reals this time.
Jon Hester [Thu, 5 Mar 2015 23:07:25 +0000 (23:07 +0000)]
Tests: add the current version of node and iojs to the travis config
Close gh-2121
Michał Gołębiowski [Wed, 25 Mar 2015 18:46:00 +0000 (19:46 +0100)]
Data: Drop the tests relying on applets
BrowserStack regularly has outdated Java in their IE instances causing our
data tests to hang & give no output. Skip the tests that create applets,
applets are treated in the same way as an embed elements which we're already
testing.
Fixes gh-1938
Closes gh-2166
Michał Gołębiowski [Tue, 24 Mar 2015 10:54:36 +0000 (11:54 +0100)]
Build: Update native-promise-only
This should fix Android 4.0 jQuery.when tests issues.
Closes gh-2159
Timmy Willison [Tue, 24 Mar 2015 15:44:51 +0000 (11:44 -0400)]
Build: save sinon update for later
Fixes gh-2160
Michał Gołębiowski [Mon, 16 Mar 2015 17:23:21 +0000 (18:23 +0100)]
Offset: Round offset value for the sake of floating errors
IE10+ may return not exactly the offset.top value set in an offset callback
if parent has fractional top offset itself. Checking for being close to the
desired result fixes the test error.
Fixes gh-2147
Richard Gibson [Mon, 29 Dec 2014 19:14:13 +0000 (14:14 -0500)]
Deferred: Backwards-compatible standards interoperability
Fixes gh-1722
Closes gh-1996
Richard Gibson [Tue, 17 Mar 2015 03:05:36 +0000 (23:05 -0400)]
Tests: Expand CSS relative adjustment tolerance for IE
Ref
48be675200e817f40fa8ec25da1be2ab0839d28d
Richard Gibson [Tue, 17 Mar 2015 03:05:36 +0000 (23:05 -0400)]
Tests: Fix CSS relative adjustment test for round-down browsers
Ref
9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17
Timmy Willison [Mon, 16 Mar 2015 18:11:38 +0000 (14:11 -0400)]
Attributes: revert returning null for non-elements
Timmy Willison [Mon, 16 Mar 2015 15:52:05 +0000 (11:52 -0400)]
Attributes: fix failing test for new return value
Winston Howes [Mon, 16 Mar 2015 15:20:16 +0000 (11:20 -0400)]
Attributes: return null when attribute does not exist
Fixes gh-2118
Close gh-2129
Rick Waldron [Mon, 9 Mar 2015 16:03:43 +0000 (12:03 -0400)]
Data: restore explicit data removal of private data in cleanData.
Fixes gh-2127
Closes gh-2132
Mr21 [Wed, 4 Feb 2015 13:10:14 +0000 (14:10 +0100)]
CSS: Support relative adjustment in any applicable unit
Fixes gh-1711
Closes gh-2011
Stephen Edgar [Sun, 25 Jan 2015 03:43:05 +0000 (14:43 +1100)]
Build: remove deprecated JSHint options
JSHint no longer supports `onevar`, `smarttabs` or `trailing` options.
Closes gh-2029
Oleg Gaidarenko [Sun, 8 Mar 2015 03:23:49 +0000 (06:23 +0300)]
Event: correct support comment
See discussion in
https://github.com/jquery/jquery/commit/
a5e1c9b44c971fd7046d9a95bd0810e50840b663
Rick Waldron [Thu, 5 Mar 2015 19:56:54 +0000 (14:56 -0500)]
Data: updates to element[expando] cache
- removes descriptor allocation
- restore simplified cache creation
- adds early return from remove call where no data exists
- use Object.defineProperty
- remove unnecessary code path
Closes gh-2119
Rick Waldron [Mon, 11 Nov 2013 18:13:22 +0000 (13:13 -0500)]
Data: move element cache to element[expando]
- avoid explicit data.discard() cleanup calls
- explicitly remove the data.events property, only when private data exists
- reduces code footprint
Fixes gh-1734
Close gh-1428
Jason Bedard [Fri, 26 Sep 2014 15:55:48 +0000 (08:55 -0700)]
Data: avoid Object.defineProperties for nodes
Closes gh-1668
Fixes gh-1728
Ref gh-1734
Ref gh-1428
Oleg Gaidarenko [Tue, 17 Feb 2015 07:09:54 +0000 (10:09 +0300)]
Core: change jQuery.each and jQuery#each signatures
Fixes gh-2090
Closes gh-2097
Oleg Gaidarenko [Tue, 17 Feb 2015 07:05:25 +0000 (10:05 +0300)]
Ajax: remove use of jQuery#each second argument
Ref gh-2090
Oleg Gaidarenko [Tue, 17 Feb 2015 07:45:30 +0000 (10:45 +0300)]
Tests: make top of the HTML suite compliant with style guide
See http://contribute.jquery.org/style-guide/html/
Closes gh-2098
Oleg Gaidarenko [Sun, 15 Feb 2015 02:41:38 +0000 (05:41 +0300)]
Ajax: remove deprecated extensions from ajax promise
Fixes gh-2084
Closes gh-2092
Oleg Gaidarenko [Sat, 14 Feb 2015 23:22:09 +0000 (02:22 +0300)]
Build: fix broken assertions caused by QUnit update
QUnit update broke couple traversing and manipulation tests, since new qunit
added another form to the test-suite while some of
jQuery selectors weren't specific
Ref
2d5c5d213f09fa0205d07a2d60a36581058cc40a
Oleg Gaidarenko [Wed, 11 Feb 2015 13:40:40 +0000 (16:40 +0300)]
Ajax: replace "jqXHR.complete" callback with "always"
Since it was deprecated since 1.8.
Also add additional comments which explains tricky
behaviour of "always" callback
Closes gh-2033
Oleg Gaidarenko [Tue, 10 Feb 2015 19:42:21 +0000 (22:42 +0300)]
Ajax: make jQuery#load "type" field explicit
* Move "evalScript.php" file to appropriate place
* Make jQuery#load "type" field explicit and add test for it
Ref trac-11264
Oleg Gaidarenko [Mon, 26 Jan 2015 03:42:14 +0000 (06:42 +0300)]
Ajax: simplify one ajax call and add explanatory comment
* Remove "async = true" from script transport since it was needed
for FF < 4 and old Opera which we do not support anymore
* Add comment to "evalUrl" method on why "type" field should be explicit
Oleg Gaidarenko [Fri, 13 Feb 2015 18:50:24 +0000 (21:50 +0300)]
Core: simplify "each" stylesheet iteration test
Closes gh-2089