Jason Bedard
f5bf9bc488
Data: do not create data cache when fetching single property
...
Closes gh-2554
2015-09-08 01:55:51 +02:00
Oleg Gaidarenko
5adf04a73c
Build: put back "lint" command to the "dev" list
...
Also fix lint error in `data` module.
It seems this command was removed from the list during merge
2015-09-08 02:33:43 +03:00
Jason Bedard
224271982e
Data: Don't expose jQuery.acceptData
...
jQuery.acceptData is an undocumented internal API that shouldn't be exposed.
Fixes gh-2555
2015-09-08 01:00:31 +02:00
Michał Gołębiowski
14c0fe4432
Serialize: Fix object detection
...
jQuery.type doesn't just return "null" for null but also e.g. "array"
for arrays instead of object so it's not really a typeof analogue.
My suggestion was stupid. Sorry.
Refs 3d7ce0a65f
2015-09-07 23:22:56 +02:00
Daniel Nill
3d7ce0a65f
Serialize: Handle arrays with null values
...
Closes gh-2436
2015-09-07 22:45:23 +02:00
Thomas Tortorini
b7a7dea95f
Effects: Remove additional parameters of easings
...
Fixes gh-2367
Closes gh-2376
2015-09-07 22:07:32 +02:00
Oleg Gaidarenko
c9cf250daa
Ajax: do not quote "throws" option - use dot notation instead
...
Fixes gh-2571
Closes gh-2542
2015-09-07 20:03:51 +03:00
Oleg Gaidarenko
10fdad742a
Build: Update jscs and lint files
...
Fixes gh-2056
2015-09-07 20:03:50 +03:00
Richard Gibson
9d820fbde6
Event: Only check elements for delegation matches
...
Closes gh-2529
Ref trac-13208
(cherry picked from commit fc2ba2e136
)
2015-08-10 10:26:13 -04:00
Michał Gołębiowski
9adfad1986
Core: Don't expose jQuery.access
...
jQuery.access was never documented, there is no need to keep it exposed.
Fixes gh-2513
Closes gh-2524
2015-08-03 19:33:38 +02:00
Michał Gołębiowski
669cb16d76
Build: Add a comment explaining why the es3 option is needed
...
It might not be obvious to everyone that IE 9 & Android 4.0 are not
ES5-compliant browsers (by a large margin) so it's better to add a support
comment. This requires slight changes in parsing the config file
as it's not a pure JSON anymore. JSHint understands such files without
problems.
Closes gh-2520
2015-08-03 18:51:18 +02:00
Jason Bedard
5fe76c663f
Data: remove user data in cleanData
...
Fixes gh-2503
Closes gh-2480
2015-07-28 14:22:03 +02:00
Michał Gołębiowski
2792845534
Event: Update support comments for mouseenter/mouseleave implementation
...
Custom mouseenter/mouseleave implementation was needed because of:
1. Safari 6 not implementing mouseenter/mouseleave at all.
2. Chrome sending mouseenter too often.
The second issue has been fixed in Chrome but exists now in Safari 7
(it's fixed in Safari 8) so we have to keep it for now, unfortunately.
2015-07-27 22:29:38 +02:00
Michał Gołębiowski
93bee4701d
Core: Adjust comments & tests after dropping Safari 6 support
...
Support comments that mentioned only Safari < 7 were checked & updated
to account for bugs existing in newer versions as well; Safari 6 support
test results were removed.
Refs gh-2482
2015-07-27 22:14:48 +02:00
Thomas Tortorini
bf48c21d22
Core: .each/.map should accept an undefined/null value
...
Fixes gh-2267
Closes gh-2363
2015-07-27 19:57:34 +02:00
Michał Gołębiowski
d242753726
Core: Add a support comment for Safari 8
...
Related issue: https://bugs.webkit.org/show_bug.cgi?id=137337
Thanks @phistuck!
Refs cfe468f29c
2015-07-20 20:22:34 +02:00
Michał Gołębiowski
1c59b308d2
Build: Acknowledge Android 2.3 is not ES5-compatible
...
Android 2.3 chokes on unquoted reserved words being used as property names
which was making Deferred tests not run.
Acknowledge the sad fact that Android 2.3 is not ES5-compliant browser
and enable the "es3" option in JSHint config.
Fixes gh-2478
Closes gh-2481
2015-07-20 18:37:26 +02:00
Marek Lewandowski
bf591fb597
Selector: Define jQuery.uniqueSort in selector-native too
...
Fixes gh-2466
Closes gh-2467
2015-07-14 09:18:57 -04:00
Oleg Gaidarenko
a2ae215d99
Ajax: Remove jsonp callbacks through "jQuery#removeProp" method
...
Fixes gh-2323
Closes gh-2464
2015-07-13 01:34:09 +03:00
Michał Gołębiowski
b60b26e184
CSS: Make .css("width") & .css("height") return fractional values
...
Fixes gh-1724
Closes gh-2439
2015-07-07 18:09:45 +02:00
Timmy Willison
84ccf2606c
Deferred: add .catch handler
...
Fixes gh-2102
2015-07-06 10:47:30 -04:00
Michał Gołębiowski
8e4aac8cb0
CSS: Improve a comment explaining IE11 fullscreen bug
2015-07-01 23:20:32 +02:00
Corey Frang
b3b2d6c3dd
Effects: Adding unit tests for jQuery.Animation
...
Closes gh-2326
2015-06-26 20:06:03 -04:00
Corey Frang
cdaed15c7e
Effects: Add tests for jQuery.Tween
2015-06-26 20:05:25 -04:00
Thomas Tortorini
3a0d582cf6
CSS: make the getStyles function more readable
...
The new version is not only simpler to read but also smaller
by 6 bytes gzipped.
Closes gh-2393
2015-06-25 02:48:35 +02:00
Gilad Peleg
5153b5334e
Core: organize prop & attr code to be similar
...
Closes gh-2384
2015-06-23 16:52:00 +03:00
Martin Naumann
90d828bad0
CSS: Work around an IE11 fullscreen dimensions bug
...
Fixes gh-1764
Closes gh-2401
2015-06-23 00:53:00 +02:00
Michał Gołębiowski
842958e7ae
Core: Switch from modules to just window.setTimeout etc.
...
Using modules for window.setTimeout etc. made those functions cached and
disabled Sinon mocking, making effects tests fail. Just writing
window.setTimeout directly is smaller anyway.
2015-06-17 12:59:01 +02:00
Michał Gołębiowski
219c749493
Core: Use window.setTimeout & friends instead of global equivalents
...
Fixes gh-2177
2015-06-17 12:29:49 +02:00
Timmy Willison
0e4477c676
Offset: return before getBoundingClientRect to avoid error in IE8-11
2015-06-16 11:21:58 -04:00
Timmy Willison
40dcc76764
Offset: return zeros for disconnected/hidden elements
...
Fixes gh-2310
Close gh-2396
2015-06-16 10:55:11 -04:00
Timmy Willison
578dcee96a
Revert "Offset: allow offset setter to throw for disconnected elements"
...
This reverts commit 0d11c1182f
.
2015-06-16 10:54:52 -04:00
Michał Gołębiowski
349edbd6c5
Manipulation: Remove an internal argument to the remove method
...
Fixes gh-2301
Closes gh-2366
2015-06-14 00:07:31 +02:00
Michał Gołębiowski
04a29696e5
Event: Remove an internal argument to the on method
...
Refs gh-2301
2015-06-14 00:06:51 +02:00
Michał Gołębiowski
bb026fc12c
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
2015-06-13 23:14:36 +02:00
Oleg Gaidarenko
3655c4e190
Event: remove preDispatch hook & simplify "simulate" signature
...
Closes gh-2358
2015-06-05 22:14:42 +03:00
Michał Gołębiowski
0019a463bd
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 e847574fc7
)
Refs 02a9d9f94b
2015-06-01 19:59:23 +02:00
Michał Gołębiowski
38a669735d
Ajax: Remove remnants of the load event alias handling
...
Refs 0705be4750
Refs gh-2287
Closes gh-2362
2015-06-01 19:05:54 +02:00
Michał Gołębiowski
d471842b3e
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
2015-06-01 14:05:05 +02:00
Oleg Gaidarenko
6df669f0fb
Event: remove outdated originalEvent hack
...
Closes gh-2335
Ref 7475d5debe
2015-05-29 20:32:59 +03:00
Gabriel Schulhof
7475d5debe
Event: Remove fake originalEvent from jQuery.Event.simulate
...
Fixes gh-2300
Closes gh-2303
2015-05-29 19:56:06 +03:00
Oleg Gaidarenko
0705be4750
Event: remove deprecated event aliases
...
Fixes gh-2286
Closes gh-2287
Ref trac-11733
2015-05-19 13:43:34 +03:00
Oleg Gaidarenko
c074006a69
Event: provide verbose comment for focus(in | out) & rename support prop
...
Closes gh-2312
2015-05-19 13:43:34 +03:00
Richard McDaniel
2d715940b9
Offset: account for scroll when calculating position
...
Fixes gh-1708
Close gh-1714
2015-05-12 10:34:57 -04:00
Timmy Willison
c252c5fac2
Core: remove custom ready event
...
Fixes gh-2264
Close gh-2265
2015-05-12 10:26:21 -04:00
Timmy Willison
20aaed367f
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:13:46 -04:00
Timmy Willison
56bb677725
Data: remove the expando when there's no more data
...
Fixes gh-1760
Close gh-2271
2015-05-12 10:09:40 -04:00
Timmy Willison
764dc949d0
Data: remove some unused code
2015-05-12 10:09:40 -04:00
Timmy Willison
79bcb29132
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 09:14:16 -04:00
Michał Gołębiowski
7855a1a7d8
CSS: Collapse a double if statement into one
...
Saves 3 bytes gzipped
Closes gh-2296
2015-05-12 00:05:35 +02:00
Richard Gibson
86419b10bf
CSS: Ignore the CSS cascade in show()/hide()/etc.
...
Fixes gh-1767
Fixes gh-2071
Closes gh-2180
2015-05-11 13:00:49 -04:00
Timmy Willison
62d5579578
Manipulation: privatize internal domManip() function
...
Fixes gh-2225
2015-05-05 11:53:26 -07:00
Timmy Willison
a74320fca8
Manipulation: privatize buildFragment() function
...
Fixes gh-2224
2015-05-05 11:44:55 -07:00
Timmy Willison
5f2ea40258
Effects: set default easing using jQuery.easing._default
...
Fixes gh-2219
Close gh-2218
2015-05-05 10:24:20 -07:00
Mu Haibao
436f0aee0a
Core: remove isArraylike check for nodes
...
Fixes gh-2238
Close gh-2243
2015-05-05 10:21:10 -07:00
Timmy Willison
0d11c1182f
Offset: allow offset setter to throw for disconnected elements
...
Fixes gh-2114
2015-05-05 08:53:17 -07:00
Timmy Willison
6176567361
Offset: remove ownerDocument check in offset getter
...
Fixes gh-2115
2015-05-05 08:31:39 -07:00
Arthur Stolyar
1617479fcf
Offset: Fix .offset() to correctly work with ShadowDOM
...
Fixes gh-1784
Close gh-2043
2015-05-05 08:16:29 -07:00
Timmy Willison
e1090c3d2b
Selector: add jQuery.uniqueSort; deprecate jQuery.unique
...
Fixes gh-2228
2015-05-04 15:27:12 -07:00
Timmy Willison
7a6931de68
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:16:28 -07:00
Timmy Willison
172cad80ac
Data: camelCasing should not ignore case
...
Fixes gh-2070
2015-05-04 10:49:21 -04:00
Timmy Willison
0e790985a7
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:27:30 -04:00
Timmy Willison
2862a07af6
Data: do not include digits when camelCasing
...
Fixes gh-1751
2015-05-03 08:25:19 -04:00
Oleg Gaidarenko
a873558436
Event: remove redundant guards for the event methods
...
Fixes gh-2047
Closes gh-2125
2015-05-03 13:56:32 +03:00
Oleg Gaidarenko
85577a348a
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
2015-05-03 13:56:32 +03:00
Oleg Gaidarenko
a117dd05f6
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
2015-05-03 13:54:17 +03:00
Oleg Gaidarenko
9db9316609
Event: add support comment
...
Ref gh-2047
2015-05-03 13:28:34 +03:00
Oleg Gaidarenko
fac67a9842
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
2015-05-03 13:28:27 +03:00
Richard Gibson
225bde37c9
Manipulation: Make an HTML interception point
...
Fixes gh-1747
Closes gh-2203
2015-04-30 13:15:33 -04:00
Richard Gibson
4b27ae16a2
Manipulation: Detect sneaky no-content replaceWith input
...
Fixes gh-2204
Ref 642e9a4557
Closes gh-1752
Closes gh-2206
2015-04-30 11:36:38 -04:00
Timmy Willison
1541664582
Core: add workaround for iOS JIT error in isArrayLike
...
Fixes gh-2145
2015-04-29 18:02:45 -04:00
Michał Gołębiowski
f6de5a90dd
Core: Align branches: remove an unused variable, add comments
...
Closes gh-2233
2015-04-27 20:19:05 +02:00
Richard Gibson
002240a6eb
Deferred: Always handle progress callbacks before done/fail
...
Fixes gh-2013
Fixes gh-2010
Closes gh-2210
2015-04-22 15:24:37 -04:00
Bastian Buchholz
55ac56aeda
Attributes: remove unnecessary element null check
...
Close gh-2201
2015-04-20 15:06:13 -04:00
Alexander O'Mara
892625b3c3
Core: Follow the AMD specification for define
...
AMD specification requires the factory argument be defined.
Close gh-2179
2015-04-13 11:53:26 -04:00
Michał Gołębiowski
bb4d888f4f
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
2015-04-13 11:41:57 -04:00
Timmy Willison
2905961bf7
Attributes: revert returning null for non-existant attributes
...
Ref https://github.com/jquery/jquery/issues/2118
2015-03-30 15:32:54 -04:00
Dave Methvin
7b09235cee
Wrap: Support .unwrap( selector) for selective unwrapping
...
Fixes gh-1744
Closes gh-2003
2015-03-30 13:38:40 -04:00
Michał Gołębiowski
06f6cd1ffd
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
2015-03-30 18:58:09 +02:00
Richard Gibson
555a50d340
Deferred: Backwards-compatible standards interoperability
...
Fixes gh-1722
Closes gh-1996
2015-03-20 02:00:17 -04:00
Timmy Willison
7632b7454b
Attributes: revert returning null for non-elements
2015-03-16 14:11:38 -04:00
Timmy Willison
5dc4616ca0
Attributes: fix failing test for new return value
2015-03-16 11:52:05 -04:00
Winston Howes
aaeed53e9f
Attributes: return null when attribute does not exist
...
Fixes gh-2118
Close gh-2129
2015-03-16 11:21:24 -04:00
Rick Waldron
332fd941b4
Data: restore explicit data removal of private data in cleanData.
...
Fixes gh-2127
Closes gh-2132
2015-03-09 13:51:16 -04:00
Mr21
9b03f6df88
CSS: Support relative adjustment in any applicable unit
...
Fixes gh-1711
Closes gh-2011
2015-03-09 12:00:10 -04:00
Stephen Edgar
34da7d5529
Build: remove deprecated JSHint options
...
JSHint no longer supports `onevar`, `smarttabs` or `trailing` options.
Closes gh-2029
2015-03-08 06:30:01 +03:00
Oleg Gaidarenko
361a0d5150
Event: correct support comment
...
See discussion in
a5e1c9b44c
2015-03-08 06:23:49 +03:00
Rick Waldron
222ac3ad6b
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
2015-03-05 14:56:54 -05:00
Rick Waldron
d702b7637a
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
2015-03-04 17:26:47 -05:00
Jason Bedard
95fb798980
Data: avoid Object.defineProperties for nodes
...
Closes gh-1668
Fixes gh-1728
Ref gh-1734
Ref gh-1428
2015-03-04 14:32:24 -05:00
Oleg Gaidarenko
2380028ec4
Core: change jQuery.each and jQuery#each signatures
...
Fixes gh-2090
Closes gh-2097
2015-02-19 11:30:59 +03:00
Oleg Gaidarenko
a4715f4216
Ajax: remove use of jQuery#each second argument
...
Ref gh-2090
2015-02-19 11:30:59 +03:00
Oleg Gaidarenko
9d1b989f20
Ajax: remove deprecated extensions from ajax promise
...
Fixes gh-2084
Closes gh-2092
2015-02-17 09:58:45 +03:00
Oleg Gaidarenko
97ef1f2612
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
2015-02-15 02:05:39 +03:00
Oleg Gaidarenko
4ef120d3f2
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
2015-02-15 02:01:59 +03:00
Oleg Gaidarenko
0ac28ed293
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
2015-02-15 02:00:38 +03:00
Oleg Gaidarenko
e984d1c79c
Manipulation: don't auto-insert tbody
...
Fixes gh-1835
Closes gh-2021
2015-02-11 16:49:59 +03:00
Oleg Gaidarenko
0ea342a6a6
Manipulation: simplify html wrappers
...
Take advantage of html serialization for html wrappers - saves 26 bytes
Plus add additional test for "col" element
Closes gh-2031
Fixes gh-2002
2015-02-10 23:44:01 +03:00
Michał Gołębiowski
45ec73f556
CSS: save 20 bytes in css/support
...
Refs gh-1842
2015-02-05 02:48:32 +01:00
Michał Gołębiowski
cdfc2d092a
CSS: Fix the pixelMarginRight support test in Android 2.3
2015-02-05 01:41:10 +01:00
Michał Gołębiowski
3747cc642a
CSS: Restore the hack to get pixels for .css('width') etc.
...
This hack turns out to be needed by Android 4.0-4.3.
Add a support test so that the hack is invoked only where needed.
Refs gh-1815
Refs gh-1820
Closes gh-1842
2015-02-04 13:51:56 +01:00
Michał Gołębiowski
a5e1c9b44c
Event: Add a note about a mouseenter bug in Chrome
...
Refs https://code.google.com/p/chromium/issues/detail?id=333868
2015-01-25 01:09:26 +01:00
Timo Tijhof
4116914dca
Core: Return empty array instead of null for parseHTML("")
...
Fixes gh-1997
Close gh-1998
2015-01-19 11:38:04 -05:00
Dave Methvin
d7e5fcee51
Event: HTML5 drop events inherit from MouseEvent
...
Fixes gh-2009
Ref gh-1925
2015-01-14 14:34:09 -05:00
Oleg Gaidarenko
74ae544483
Offset: simplify jQuery#offsetParent method
...
* It seems, check for html element (and previously for body element)
was redundant
* Simplify "return" statement
* Add comment about potential errors that didn't find themselves
in real life app
Closes gh-1968
2015-01-13 08:12:51 +03:00
Leonardo Braga
85ffc6d973
Manipulation: add support to tag-hyphenated elements
...
Fixes #1987
Closes gh-1988
2015-01-13 07:42:59 +03:00
Leonardo Braga
534f13025a
Core: add support to tag-hyphenated elements
...
Ref #1987
2015-01-13 07:42:52 +03:00
Dave Methvin
0ea8c32863
Core: Remove deprecated context and selector properties
...
Fixes gh-1908
Closes gh-2000
2015-01-11 21:11:56 -05:00
George Mauer
89ce0af2cf
Ajax: $.post and $.get can now take an options object
...
Fixes gh-1986
Closes gh-1995
2015-01-11 20:32:38 -05:00
Richard Gibson
53aa87f3bf
Core: Standardize indexOf comparisons
...
not present: `< 0`
present: `> -1`
at index: `=== N`
Closes gh-1984
2015-01-10 23:47:01 -05:00
Richard Gibson
4cbf02df84
Callbacks: Reduce size
...
(cherry picked from commit 18baae2efb
)
2015-01-10 23:08:27 -05:00
Richard Gibson
32bf9178ca
Callbacks: Don't abort execution on .lock()
...
Fixes gh-1990
Closes gh-1991
(cherry picked from commit fc7477f492
)
2015-01-10 23:07:39 -05:00
Richard Gibson
0d829f0e9a
Callbacks: No object starts out locked
...
Fixes gh-1989
(cherry picked from commit f5a8c649b5
)
2015-01-10 23:04:34 -05:00
Aditya Raghavan
97cf528082
Event: Normalize mouse event properties in drag events
...
DragEvent is a superset of MouseEvent, so we want to fix up mouse
properties like pageX and pageY.
Fixes gh-1925
2015-01-05 15:34:52 -05:00
Anne-Gaelle Colom
66e1b6b8d4
Build: Remove dates from copyright notice
...
Closes gh-1983
2015-01-03 16:01:57 -05:00
Michał Gołębiowski
76df9e4e38
Build: Don't assume the browser environment; smoke test on Node w/ jsdom
...
Fixes gh-1950
Closes gh-1949
2014-12-26 13:26:46 +01:00
Nicolas HENRY
ab20d9d24f
Deferred: Fix $.when with resolved deferred and progress callbacks
...
Fixes gh-1894
Closes gh-1915
2014-12-25 15:39:28 +03:00
Shivaji Varma
5a0867d1e9
Ajax: simplify jQuery.parseXML method
...
-2 bytes to the gzipped size and code looks a bit nicer
This wasn't landed to the compat branch though, since size would increase
with this cherry-pick
Closes gh-1856
2014-12-25 08:24:37 +03:00
Oleg Gaidarenko
c62486fb4c
CSS: simplify "defaultDisplay" module
...
Closes gh-1962
2014-12-24 02:25:04 +03:00
Oleg Gaidarenko
359b03cac7
Manipulation: make wrapAll funarg execute only once
...
Fixes gh-1843
Closes gh-1912
2014-12-24 01:51:33 +03:00
Mike Sidorov
6f65f5faf2
Data: shave off a couple of bytes
...
Closes gh-1931
2014-12-24 01:44:38 +03:00
Victor Homyakov
72c4a067a9
Data: speed up $.fn.data() for camel-cased key
...
Fixes gh-1941
Closes gh-1952
2014-12-24 01:34:40 +03:00
Aditya Raghavan
d21edb599d
Event: fix incorrect window bug with scrollTop/Left in iframes
...
Fixes gh-1945
Closes gh-1959
2014-12-24 00:33:00 +03:00
Ben Toews
b091fdbafa
Ajax: use anchor tag for parsing urls
...
Fixes gh-1875
Closes gh-1880
2014-12-11 15:26:04 -05:00
Timmy Willison
cfe468f29c
Core: re-introduce createHTMLDocument in parseHTML; Safari 8 left out
...
Close gh-1505
2014-12-10 09:51:30 -05:00
Dave Methvin
8653068dd6
Event: Empty namespaces should be uneventfully ignored
...
Thanks @hamishdickson for the report!
Closes gh-1769
2014-12-09 19:59:56 -05:00
Timmy Willison
b77983173e
Core: revert addition of createHTMLDocument. Thanks, Safari 8.
...
- Safari 8 has issues when the HTML string contains forms.
Closing tags are not respected.
2014-12-09 18:01:33 -05:00
Timmy Willison
31c7d7fb75
Core: pass empty string to createHTMLDocument to appease IE
2014-12-09 16:37:30 -05:00
Timmy Willison
59232825aa
Core: remove unnecessary support test for createHTMLDocument
2014-12-09 15:57:12 -05:00
Timmy Willison
6051609df3
Build: fix tests in AMD mode
2014-12-09 15:39:24 -05:00
Frederic Hemberger
58c2460821
Core: use document.implemenation.createHTMLDocument in jQuery.parseHTML
...
Close gh-1505
2014-12-09 15:19:01 -05:00
Daniel Husar
eeda11cdd6
Core: Simplify and speed up .each
...
Closes gh-1510
2014-12-09 01:46:22 -05:00
Michał Gołębiowski
f6302b0b53
Attributes: Use the option val hook in select val hook and simplify it
...
The hook is still defined; not using it could cause issues in IE<11.
Also, IE10 no longer throws when value not set but it still doesn't trim the
value. IE11 has all those issues fixed; support comments are updated.
Fixes gh-1902
Closes gh-1901
2014-12-08 22:39:58 +01:00
Dave Methvin
bc1cb122db
Callbacks: Disabling a callback should prevent firing
...
Thanks to @TheDistantSea for the report!
Fixes gh-1790
Closes gh-1643
2014-12-07 20:51:04 -05:00
Dave Methvin
d9ed166c86
Event: Copy detail property to jQuery.Event on native events
...
Fixes gh-1867
2014-12-03 15:56:50 -05:00
Dave Methvin
80022c81ce
Core: Throw an error on $("#") rather than returning 0-length collection
...
Closes gh-1682
Thanks @goob for the issue report!
2014-12-03 14:51:24 -05:00
Bin Xin
15f4dec789
Manipulation: support data-URI scripts insertion
...
Fixes gh-1887
Closes gh-1888
2014-12-03 04:54:53 +03:00
Dave Methvin
7d15b4d1f1
CSS: Clean up memory leak in reliableMarginRight
...
Fixes gh-1795
Closes gh-1893
Thanks for the report flexphperia!
2014-12-02 15:01:45 -05:00
Oleg Gaidarenko
f7e60dc83d
Dimensions: allow modification of coordinates argument
...
Fixes gh-1848
Closes gh-1853
2014-11-16 18:05:29 +03:00
Michał Gołębiowski
1bbb678949
Manipulation: Check state lost if the name is set for Android 4.0-4.3
...
Refs gh-1820
Closes gh-1841
2014-11-06 16:05:18 +01:00
Michał Gołębiowski
c309b95756
Misc: Adjust comments & docs to dropping IE<8 in jQuery Compat
2014-11-04 16:16:36 +01:00
Michał Gołębiowski
740e190223
Misc: Drop support for older browsers; update support comments
...
That includes Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.
Closes gh-1820
Refs gh-1815
2014-11-03 18:37:26 +01:00
Timmy Willison
758fd6cea9
Docs: 1.x-master branch -> compat branch; 2.x branch -> master branch
2014-11-03 12:34:45 -05:00
Dan Hart
598ed050f6
Ajax: Fix for request aborted in ajaxSend
...
Fixes gh-1775
Close gh-1619
2014-11-01 12:44:43 -04:00
Arthur Verschaeve
31d58c5cbb
Change broken url to wayback one
2014-10-30 10:26:38 -04:00
Michał Gołębiowski
f110360f65
Deprecated: Drop size and andSelf methods
...
Fixes gh-1749
Closes gh-1822
2014-10-30 01:19:54 +01:00
Oleg Gaidarenko
4e7f34f629
Ajax: remove event dependency from the ajax module
...
Closes gh-1695
2014-10-14 21:24:05 +04:00
Jason Bedard
0cdec797de
Data: avoid non-alphanumeric chars in expando properties
...
Ref chromium issue 378607
Ref #14839
Closes gh-1662
2014-09-26 15:03:05 +04:00
Daniel Herman
b807aedb7f
Event: Restore the constructor
property on jQuery.Event prototype
...
The original definition of the jQuery.Event prototype was paving over the
`constructor` property which was causing jQuery.isPlainObject to
improperly report that an instance of jQuery.Event was a plain object.
Fixes #15090
Closes gh-1580
2014-09-04 03:28:40 -04:00
Richard Gibson
1ae025e24f
Manipulation: Tolerate XMLNode host object input to getAll
...
Fixes #15151
Ref 25712d77c3
Closes gh-1602
2014-09-04 02:41:57 -04:00
Oleg Gaidarenko
7e09619cdf
CSS: Correct typo in the comment
2014-09-03 00:20:23 +04:00
Oleg Gaidarenko
a7724186c9
CSS: Use pre-defined displays for html and body
...
Ref 60f546acb1
Ref 274feb53cc
2014-09-03 00:11:05 +04:00
Nazar Mokrynskyi
274feb53cc
CSS: Remove use of getDefaultComputedStyle
...
Remove optimization to make jQuery compatible with Google's Polymer project
Closes gh-1647
Fixes #15227
2014-09-02 23:34:48 +04:00
Oleg Gaidarenko
075da3091c
Attr: Use typeof check for getAttribute method
...
Ref 29838b6cab
2014-09-02 21:48:35 +04:00
Chris Antaki
15a609f766
Build: Moved JSHint directives to .jshintrc file
...
Closes gh-1595
2014-09-02 20:31:11 +04:00
Chris Antaki
4287442ab8
Offset: Simplified a conditional
2014-09-02 20:29:10 +04:00
Chris Antaki
29838b6cab
Core: Drop strundefined variable
2014-09-02 20:29:10 +04:00
Aurelio De Rosa
895ea6887d
CSS: Removed redundant "to the number" in comment
...
Closes gh-1594
2014-09-02 20:12:35 +04:00
Timmy Willison
10399ddcf8
CSS: elements are hidden when either offsetWidth or offsetHeight is zero
...
- Note: this is a breaking change that has been delayed for several versions.
Fixes #10406
Fixes #13132
2014-07-17 17:03:35 -07:00
Timmy Willison
c869a1ef8a
Build: update grunt-jscs-checker and pass with the new rules
2014-07-17 10:25:59 -07:00
Chris Antaki
e5190982c4
Ajax: Remove workaround for IE6/7
...
Closes gh-1597
Ref #8138
2014-07-13 00:34:40 +04:00
Timo Tijhof
2fb719e5aa
Core: Consistently use local reference to access()
...
Ref 3b53b75160
Closes gh-1605
2014-07-12 22:10:45 +04:00
Scott González
c5d9d88dce
Build: Move all external libraries to external directory
...
Closes gh-1593
2014-06-24 10:17:50 -04:00
Scott González
8d113104e9
Build: Remove unused Sizzle test files
2014-06-24 10:16:55 -04:00
Oleg Gaidarenko
708764f47b
Effects: Improve raf logic
...
* Make animation behave as if jQuery.fx.off = true if document is hidden
* Use cancelAnimationFrame in jQuery.fx.stop
Closes gh-1578
2014-06-16 03:08:46 +04:00
Oleg Gaidarenko
72119e0023
Effects: Reintroduce use of requestAnimationFrame
...
Same as before, just use don't use prefixes, since they pretty match useless now
and use page visibility API to determine if animation should start.
Also null the requestAnimationFrame attribute in window for tests since
sinon does not provide fake method for it.
Fixes #15147
2014-06-16 03:08:46 +04:00
Oleg Gaidarenko
bbdfbb4ee8
Ajax: Always use script injection in globalEval
...
Fixes #14757
Closes gh-1449
2014-06-16 03:08:46 +04:00
Oleg Gaidarenko
e488d985cf
CSS: Do not throw on frame elements in FF
...
IE9-10 throws on elements created in popups (see #14150 ), FF meanwhile throws
on frame elements through "defaultView.getComputedStyle" (see #15098 )
Use "defaultView" if in the popup which would fix IE issue,
use "window.getComputedStyle" which would fix FF issue.
And everybody wins, except performance, but who cares right?
Fixes #15098
Closes gh-1583
2014-06-16 03:08:26 +04:00
Dave Methvin
d837f119c3
Support: clean up comments and Support notation
...
Closes gh-1577
2014-06-10 23:28:14 -04:00
Richard Gibson
e1192af872
Core: Work around loss of precision from parseFloat
...
Fixes #15100
(cherry picked from commit b6e99eb43c
)
2014-06-07 14:35:01 -04:00
TJ VanToll
c18c6229c8
Wrap: Declare a dependency on the manipulation module
...
Fixes #15121
Closes gh-1589
2014-06-02 16:43:46 -04:00
TJ VanToll
d41e81980e
Ajax: Support usage without jQuery.event
...
Fixes #15118
Closes gh-1588
2014-06-02 15:08:40 -04:00
Timmy Willison
97c803acfb
Ajax: move ajax event aliases to their own file
...
Fixes #15126
2014-06-02 12:39:11 -04:00
Dave Methvin
b8133e282c
Data: Work around IE11 bug with onpageshow attribute
...
Fixes #14894
2014-04-30 10:46:26 -04:00
Oleg Gaidarenko
c34dbf5a8d
Effects: Respect display value on inline elements
...
Take "olddisplay" value into the account
Fixes #14824
Closes gh-1566
Ref 73fe17299a
2014-04-30 17:05:48 +04:00
Richard Gibson
90b43de212
Selector: Update Sizzle to 1.10.19
...
Fixes #14901
Fixes #14793
2014-04-18 17:17:51 -04:00
Christian Kosmowski
1ca84214cc
Dimensions: Reverse a check to avoid potential reflows
...
Fixes #14979
Closes gh-1560
2014-04-18 10:00:42 -04:00
Philip Jägenstedt
2c2c93c7cb
Selector: Use Element.matches in selector-native if available
...
Spec:
http://dom.spec.whatwg.org/#dom-element-matches
Support in Chromium:
https://code.google.com/p/chromium/issues/detail?id=326652
Fixes #14902
Closes gh-1524
2014-03-20 23:32:40 -04:00
Michał Gołębiowski
ad032d3c7d
Event: Fix isDefaultPrevented for bubbled events in Android 2.3
...
Fixes #14897
Closes gh-1545
2014-03-20 23:16:30 -04:00
Richard Gibson
890d441aa5
Effects: Don't overwrite display:none when .hide()ing hidden elements
...
Fixes #14848
Closes gh-1548
2014-03-20 22:54:38 -04:00
Oleg Gaidarenko
5a8f769332
CSS: jQuery#hide should always save display value
...
Fixes #14750
Closes gh-1509
2014-03-20 22:37:05 -04:00
Jonathan Sampson
85af4e6412
Manipulation: Change support test to be WWA-friendly
...
Setting the innerHTML property in an unsafe manner raises issues in
Windows Web Applications. Strings being passed into innerHTML cannot
include the name attribute.
Closes gh-1537
2014-03-20 16:54:37 -04:00
John Hoven
541e7349b6
Attributes: Trim whitespace from option text when returned as a value
...
Fixes #14858
Ref #14686
Closes gh-1531
(cherry picked from commit 9ec429cf62
)
Conflicts:
src/attributes/val.js
2014-03-20 15:47:35 -04:00
Rodrigo Rosenfeld Rosas
e547a2775f
CSS: window.getDefaultComputedStyle may return null
...
Fixes #14736
Closes gh-1501
(cherry picked from commit 51910ba8a5aff4cd1a811f1fdb76a6c62a09a666)
2014-03-20 14:42:44 -04:00
Benjy Cui
ca0086b55a
Core: Fix comments for .get() method
...
Closes gh-1547
2014-03-20 12:50:52 -04:00
louisremi
e06f428f6e
Event: Treat Pointer events like mouse events, #14741
...
Ref #14741
Ref gh-1503
2014-03-16 10:49:57 -04:00
Roman Rei_
c29e9c4db1
CSS: Add flex-grow and flex-shrink to cssNumber
...
Fixes #14888
Closes gh-1536
2014-03-13 23:12:40 -04:00
S. Andrew Sheppard
2585ee5880
AMD: Note on AMD best practices
...
Fixes #14687
Closes gh-1478
2014-03-12 23:22:31 -04:00
Dave Methvin
6a89db86ed
Event: Call underlying stopImmediatePropagation when present
...
Fixes #13997
2014-03-12 21:11:26 -04:00
Michał Gołębiowski
2c180ef938
Css: Revert 24e587929f
...
The workaround to be able to change !important styles broke the browser
keeping the old CSS value if the new one was rejected. Patching it would
involve a significant perf hit (~33%) so the initial patch needs to be
reverted instead.
Tests by m_gol & gibson042.
Fixes #14836
Closes gh-1532
2014-03-10 19:14:44 +01:00
Michał Gołębiowski
a96d5bed58
Manipulation: don't use Object.keys for consistency
...
Fixes #14659
2014-03-09 23:31:59 +01:00
Dave Methvin
2df1aad6a1
Core: Do not run window.onready when ready
...
Fixes #14802
2014-03-04 21:00:04 -05:00
Dave Methvin
f4b37d8982
CSS: Return values should be numbers
...
Fixes #14792
2014-03-04 20:58:31 -05:00
Dave Methvin
06adf7c95d
Event: Allow triggerHandler(beforeunload)
...
Fixes #14791
2014-03-04 20:49:57 -05:00
Dave Methvin
3a68c114e3
Ajax: .load() should trim its selector
...
Fixes #14773
2014-03-04 20:43:14 -05:00
Dave Methvin
10efa1f5b4
Core: Arrays like [42] should fail .isNumeric()
...
Fixes #14179
2014-03-04 20:40:23 -05:00
Michał Gołębiowski
279913c71b
Core: Remove native String#trim usage to save size
...
Fixes #14794
2014-03-04 23:08:35 +01:00
Richard Gibson
954966e08d
Support: Reduce size
...
Ref a7ea12a9a7
2014-02-14 07:05:47 -08:00
Richard Gibson
a7ea12a9a7
Support: Skip style-based tests when element.style is undefined
...
Fixes #14785
Ref #13754
Ref badcd1b6f3
2014-02-14 06:22:44 -08:00
Michał Gołębiowski
eda283d0e4
Core: Fix trim in Android<4.1
2014-02-13 14:48:58 -08:00
Michał Gołębiowski
79f59c2144
Support: Document box-sizing was unprefixed in Firefox 29
2014-02-05 15:57:11 +01:00
Michał Gołębiowski
a74ad04bc9
Selector: update Sizzle
2014-02-05 15:10:22 +01:00
Oleg
cab18353a6
Attrs: Simplify an option hook
...
Since getter was removed in fdd78fad19
there is no longer a need to wrap option element in order to get its value
Fixes #14756
2014-02-05 10:46:00 +04:00
Rick Waldron
3dccf62c81
Core: Remove special case try/catch in isPlainObject
...
Fixes #14746
2014-02-02 15:40:39 -05:00
jaubourg
01c360f963
Ajax: Protect against exceptions thrown synchronously by xhr.send
...
When xhr.send throws an exception synchronously, the onerror handler may have
been called already which, unchecked, makes the exception bubble up outside of
jQuery.ajax.
We now catch the exception pre-emptively and only rethrow if we know it hasn't
already been notified through the onerror handler.
Fixes #14683
2014-01-29 14:18:58 +01:00
Dave Methvin
a20494228d
Manipulation: Use textarea for missing IE defaultValue check
...
IE11 fixed the checkbox defaultValue issue but not textarea. Rather than
creating a new detect name I'm reusing the old one to protect anyone who
is unwisely using this externally. Re-fixing the defaultValue when it
doesn't need to be done is not a problem, so leave that code for IE11.
Fixes #14716
Closes gh-1495
2014-01-23 13:04:40 -05:00
Richard Gibson
391c21b15d
Traversing: Check all pairwise element combinations for .find( els )
...
Ref b8d0d54a3c
Fixes #14701
2014-01-17 00:38:56 -05:00
Oleg
fdd78fad19
Attrs: Remove outdated valHook for option element
...
This hook was relevant for BlackBerry 4.7 which is no longer supported.
But this code path now raises error in IE10-11 (#14686 ) in 1.x-master branch.
So to just to be safe, also add test for IE issue to this branch too.
2014-01-16 04:47:44 +04:00
Timmy Willison
710d236ad1
Sizzle: update committed dependencies
2014-01-13 16:37:42 -05:00
Forbes Lindesay
6de1d973a4
Intro: Pass window to intro if available, for browserify
...
Closes gh-1476
2014-01-09 21:27:28 -05:00
Dave Methvin
3118f58c46
Build: Happy New Year! Thanks @marlonlandaverde
2014-01-09 20:51:21 -05:00
Dave Methvin
085814474e
Effects: First step() call should match :animated selector
...
Fixes #14623
Closes gh-1473
2014-01-07 16:01:34 -05:00
Timo Tijhof
b39ee05b69
traversing: Optimise .add by not using makeArray
...
Closes gh-1430
2013-12-30 12:34:08 -05:00
Timmy Willison
e0fad093b6
exports/global: Do not attach global variables for most CommonJS environments
...
For CommonJS environments where the global already has a document, it is expected
that if a global is needed, the user can attach the global.
Fixes #14645 .
2013-12-20 18:39:16 -05:00
Richard Gibson
29c8003347
Selector: update Sizzle
...
Fix #14584
2013-12-20 16:46:30 -05:00
Timmy Willison
a6f474e699
Build: Add the ability to remove global exposure.
...
Ref #14016
2013-12-19 15:00:06 -05:00
Dave Methvin
bb3fff9ac2
Offset: Fix comment typo, thanks @AurelioDeRosa
2013-12-18 20:50:53 -05:00
Chris Antaki
b8d0d54a3c
Reduce size by reordering variable declarations
...
Close gh-1421
2013-12-16 12:48:46 -05:00
Dave Methvin
b278d8174f
Revert "Ajax: Fix #14424 . Use ActiveX in IE9+ on local files, close gh-1434."
...
This reverts commit 498e0e6c9b
.
We can't use the ActiveX XHR because it doesn't support events.
2013-12-15 22:02:51 -05:00
Timmy Willison
f9ad13c9ec
Manage bower dependencies with grunt-bowercopy
...
Tracked bower dependencies are located at "src/sizzle" and "test/libs".
The source-destination mapping is in the Gruntfile.
When updating a bower dependency, update the version in bower.json, run
`grunt bower`, and then commit the result. When adding a dependency,
update the bowercopy task accordingly.
Fixes #14615 .
Closes gh-1452.
2013-12-06 16:04:35 -05:00
Michał Gołębiowski
dc649a33e0
Change window to global in the most outer IIFE parameters.
...
In the most outer IIFE it’s not yet known if the global is window or not.
Using the window variable to denote the global was misleading in that case,
especially that the code didn’t make such assumption, requiring to provide
a Web-like window separately. Renaming window to global clears the confusion.
2013-11-17 01:06:44 +01:00
Timmy Willison
8f7db68cbf
Fixes #14549 . Execute the factory immediately when CommonJS is used in the browser.
2013-11-15 17:18:22 -05:00
Dave Methvin
c2aca17d45
Ref #14180 , let focusin/out work on non-element targets.
2013-11-14 16:33:12 -05:00
Dave Methvin
498e0e6c9b
Ajax: Fix #14424 . Use ActiveX in IE9+ on local files, close gh-1434.
...
We can't feature detect ActiveX in IE11, but we can just call
it and catch whatever error occurs, then try normal XHR.
2013-11-14 15:27:37 -05:00
Ilya Kantor
d0782ed7e8
Event: Fix #14544 . Remove elem from event handle, close gh-1400.
...
This also reduces memory leaks if the element is removed without cleaning
events (e.g with native DOM operations).
Not pickable into the 1.x branch because oldIE still needs this.
2013-11-14 14:46:47 -05:00
njhamann
0d68b7877f
Fix #14036 . Remove user/pass from ajaxLocation. Close gh-1340.
2013-11-13 22:53:15 -05:00
Dave Methvin
dce2edb3a6
ajax: Fix #14207 . file protocol returns status 0, see #8605 .
2013-11-13 20:53:04 -05:00
Dave Methvin
1cecf64e5a
Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369.
2013-11-12 21:15:08 -05:00
Richard Gibson
71b2ac524e
Fix #14492 : More correct jQuery.parseJSON. Close gh-1419.
...
(cherry picked from commit 60a6178131
)
Conflicts:
src/ajax/parseJSON.js
2013-11-12 00:13:08 -05:00
Michał Gołębiowski
07c3747457
No ticket. Remove the unnecessary guard in addGetHookIf. Close gh-1426.
...
In 1.x if the support test executes before doc ready, it may not be able
to return a result yet. In such a case, we protect ourselves from future
breakages, allowing only for the ones before doc ready.
Since in 2.x lazy support tests attach test elements to docElem, not body,
such a guard is unnecessary.
2013-11-11 18:20:33 +01:00
Richard Gibson
c66a5e70f2
Fix #14074 : element id="nodeName". Close gh-1389.
...
(cherry picked from commit 126d596b56
)
Conflicts:
src/data.js
src/data/accepts.js
test/unit/core.js
test/unit/data.js
2013-11-07 11:57:41 -05:00
Marian Sollmann
ff365d305f
Fix #14190 : Remove unnecessary assignment in .closest. Close gh-1411.
...
(cherry picked from commit 346b031af9e3b315ef351a9cc7fee56f930cf346)
Conflicts:
src/traversing.js
2013-11-06 10:37:06 -05:00
Corey Frang
30eee925db
Fix #14101 : $().data() should be undefined, not null
2013-11-06 10:25:12 -05:00
Chris Antaki
cc19a6bd3b
No ticket: Reduce size by reordering variable declarations. Close gh-1416.
2013-11-05 17:16:38 -05:00
Chris Antaki
fb2e0a0c28
Fix #11809 : Update text without creating DOM nodes. Close gh-1412.
2013-11-05 17:13:49 -05:00
Richard Gibson
19c1b6109a
No ticket: Update support comment to match convention
2013-11-04 12:51:57 -05:00
Richard Gibson
705216dc46
No ticket: Small ajax/xhr size optimizations
2013-10-28 17:53:39 -04:00
Richard Gibson
f9d41ac641
Fix #14379 : AJAX requests on unload
2013-10-28 17:53:31 -04:00
Oleg
ebabb33411
No ticket. Remove useless comment
2013-10-28 21:33:33 +04:00
Richard Gibson
ced9d155f0
Fix #14459 : Use jQuery.parseJSON instead of JSON.parse
2013-10-28 11:35:53 -04:00
Dave Methvin
eca79fbf5b
Revert "Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369."
...
This reverts commit 9b6f074580
.
2013-10-22 22:49:03 -04:00
Dave Methvin
9b6f074580
Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369.
2013-10-22 22:03:20 -04:00
Ronny Springer
083edd60a6
Ref 2263134b
: Better identify potential JSON. Close gh-1401.
2013-10-16 08:46:45 -04:00
Lihan Li
24e587929f
Fix #14394 : Changing style !important in webkit. Close gh-1385.
2013-10-15 16:34:54 -04:00
Richard Gibson
a339096d6a
No ticket: Small curCSS size optimizations
2013-10-15 12:28:32 -04:00
George Kats
5ce4b06c28
Fix #14432 : Always return string from .css("z-index"). Close gh-1395.
2013-10-15 12:28:25 -04:00
Timmy Willison
a5037cb9e3
Fixes #14450 . Remove CommonJS+AMD syntax.
2013-10-15 10:40:48 -04:00
Oleg
b561f5ab0a
Fix some code style inconsistencies
2013-10-07 03:16:18 +04:00
Dave Methvin
3bcd04f528
Fix #13993 . Save result of native inline handlers. Close gh-1368.
2013-10-06 17:43:54 -04:00
Richard Gibson
f519539d3b
No ticket: Compress core and data modules
...
(cherry picked from commit b31bd4c05d
)
Conflicts:
src/core.js
src/data.js
2013-09-28 12:35:08 -04:00
Anthony Ryan
2d4c0d5f37
No ticket: Fix XHTML regression. Close gh-1375.
2013-09-23 10:13:31 -04:00
Timo Tijhof
2aa2957d21
core: Fix cut off comment in jQuery.map from c72371f714
. Close gh-1379.
2013-09-23 10:10:46 -04:00
Dave Methvin
ec3ac9a247
Fix #14290 . Don't throw if text node is appended to table. Close gh-1371.
2013-09-19 10:24:22 -04:00
Dave Methvin
4671ef15c2
Fix #14282 . Don't fondle getPreventDefault if preventDefault exists. Close gh-1365.
2013-09-19 09:55:14 -04:00
Oleg
a25343001e
Fix #12723 and simplification and optmization of defaultDisplay helper
2013-09-17 16:10:52 +04:00
Oleg
642e9a4557
Simplify replaceWith method. Closes gh-1276
2013-09-17 13:24:27 +04:00
Oleg
80538b04fd
Correct code style in comment line
2013-09-13 19:29:48 +04:00
Oleg
cb37994d76
No ticket: fix code style inconsistencies. Closes gh-1361
2013-09-13 01:04:29 +04:00
Richard Gibson
68213f20bb
Ref #14313 : NaN detection. Close gh-1352.
...
(cherry picked from commit 0bc0a69026
)
2013-09-12 16:45:12 -04:00
Mike Sidorov
679536ee4b
charAt -> string indexing. Close gh-1359.
2013-09-12 12:33:51 -05:00
Timmy Willison
cb707d8bd0
Flip the switch on checkOn
2013-09-11 15:03:40 -05:00
Timmy Willison
6d2c5c715a
Correct the checkClone support test for Safari 5.1 and mobile webkits
2013-09-11 14:29:15 -05:00
Timmy Willison
8a832797c0
Fix support test for checkClone. Fixes Safari 5.1 manip failures.
2013-09-11 09:51:31 -05:00
Timmy Willison
19de30ce0f
Fix context
2013-09-11 08:46:08 -05:00
Timmy Willison
2e850fb802
The cssHook from addGetHookIf wasn't actually getting added
2013-09-11 08:41:48 -05:00
Timmy Willison
70a1c36648
Modules can assume the presence of their parents
2013-09-10 20:24:04 -05:00
Michał Gołębiowski
0b9f034382
No ticket. Abstract conditional hook definition.
2013-09-11 02:45:11 +02:00
Timmy Willison
4ded9be72a
Remove offset dependency from css. Move curCSS and getStyles to their own modules. -39 bytes. Close gh-1360.
2013-09-10 19:24:26 -05:00
Timmy Willison
aab9d63279
Map Sizzle to a path with config to allow users to put Sizzle wherever they want
2013-09-10 18:47:36 -05:00
Timmy Willison
73fe17299a
Ensure display: inline-block when animating width/height on inline elements. Fixes #14344 .
2013-09-10 14:57:14 -05:00
Timmy Willison
825ac37736
Separate jQuery.fn.init into its own module (for lighter core dependencies across all modules)
2013-09-09 19:13:01 -05:00
Timmy Willison
99191a510e
Apply consistent ordering in all modules. -38 bytes. Order modules like functions > jQuery.extend > jQuery.fn.extend.
2013-09-09 13:54:46 -05:00
Timmy Willison
cd4a9cd7fa
All non-var modules should not indent in their AMD wrappers (just for prettier builds). No functionality changes.
2013-09-09 12:08:00 -04:00
Timmy Willison
3b53b75160
Break jQuery.access out into its own module to separate it from core; Adjust CommonJS+AMD build support to include non-var dependencies. Convert modules with more than a few dependencies to use CJS+AMD syntax.
2013-09-09 11:34:23 -04:00
Timmy Willison
4fd6e8e760
Reorder css.js logically
2013-09-09 10:01:04 -04:00
Timmy Willison
1b3c0c00fa
Add AMD+CommonJS capabilities to the build script (for modules with long unreadable dependency lists)
2013-09-09 09:50:12 -04:00
Timmy Willison
38cb6d9ed8
Fix loading tests with AMD (new support module needed core)
2013-09-09 09:49:49 -04:00
Timmy Willison
b534ee2ccf
Always return jQuery in modules that can be included separately
2013-09-08 21:25:27 -04:00
Timmy Willison
99c123b159
Move parsing methods to their own files (separates manipulation dependency from core)
2013-09-08 21:05:07 -04:00
Michał Gołębiowski
eb9cbfcaf6
No ticket. Update support comments to reflect current state of affairs.
2013-09-07 03:14:40 +02:00
Michał Gołębiowski
1a25f21dc3
No ticket. Restore checking individual src/**/*.js files by jsHint.
2013-09-06 20:31:18 +02:00
Michał Gołębiowski
1f16b16859
No ticket. Optimize the marginRight hook: run the support test once only.
2013-09-06 18:33:55 +02:00
Timmy Willison
73e120116c
With all of the ready calls removed internally, ready was never kicked off. Add a call in the ready module to ensure ready is checked.
2013-09-06 11:26:08 -04:00
Michał Gołębiowski
bbbdd94725
Fix #10814 . Make support tests lazy and broken out to components.
2013-09-06 03:38:22 +02:00
Michał Gołębiowski
776012b8b3
Fix #14084 : attach the test div to documentElement, not body.
2013-09-05 18:26:21 +02:00
Richard Gibson
f66d53c856
Ref #14313 : Further code and test improvements
2013-09-03 02:01:53 -04:00
Amey Sakhadeo
c75c9a8ebb
Fix #14313 : Optimize jQuery.merge for size. Close gh-1344.
2013-08-30 19:55:03 -04:00
Timmy Willison
004c1fc5bb
Pass all tests (and load Sizzle fixture correctly) when loading with AMD
2013-08-29 16:18:17 -04:00
Timmy Willison
01d5a1a1c9
Fix for custom attr handles duck-punching the boolean attr handle
...
Conflicts:
src/attributes/attr.js
2013-08-28 12:23:54 -04:00
Guy Bedford
6f4da9a8df
Remove trailing comma in define array. Close gh-1336.
2013-08-20 09:47:35 -04:00
Michał Gołębiowski
215cc09067
No ticket. Add a support note about defaultPrevented missing in Android < 4.0
2013-08-19 19:31:15 +02:00
Chris Price
3e3680c2cd
Fix #14150 : revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311.
2013-08-19 18:10:25 +02:00
Jeremy Dunck
c418b94eb4
Fix #14164 : assign className in addClass/removeClass only if changed. Close gh-1331.
2013-08-19 17:55:49 +02:00
Timmy Willison
b693b370a4
When converting the source to AMD, don't forget to AMD
2013-08-16 12:54:43 -04:00
Timmy Willison
cecb52ff5c
Specify support as a dependency wherever it is used. Optimize module order to save 15 bytes.
2013-08-15 20:38:48 -04:00
Timmy Willison
6318ae6ab9
AMD-ify jQuery sourcegit s! Woo! Fixes #14113 , #14163 .
2013-08-15 14:15:49 -04:00
terrycojones
3484a68c16
Removed an unneeded variable. Closes gh-1321.
2013-08-08 01:15:16 +04:00
Timmy Willison
302f222df0
No need to remove if they ain't nuthin thar
2013-07-24 21:31:07 -04:00
Michał Gołębiowski
c33108cad1
Update devDependencies, adjust .jshintrc to jsHint 2.x, use .jshintignore. Close gh-1283.
2013-07-11 12:52:48 -04:00
Timmy Willison
b13d8229ae
Include Sizzle and Qunit with bower. Fixes #14118 .
2013-07-10 12:00:26 -04:00
Timmy Willison
c93f91e33e
Remove undefined
var declarations
2013-07-08 12:27:33 -04:00
Timmy Willison
1f67d07c60
Support CommonJS environments by accentuating the need for a window with a document. Fixes #13768 .
2013-07-04 14:00:26 -04:00
Timmy Willison
aee465987c
Update Sizzle to version 1.10.3-pre
2013-07-04 13:28:03 -04:00
ruado1987
5f1aa2354a
Fixes #13976 : Garbage input should not cause error in buildFragment. Close gh-1284
2013-07-01 22:31:01 +04:00
Jason Merino
ec6eb38c64
Fixes #14049 : don't append px to CSS order value. Close gh-1300.
2013-07-01 19:58:39 +02:00
Timmy Willison
d139732a16
Update Sizzle: bower manifest
2013-06-26 23:08:37 -04:00
Rick Waldron
147726af12
Fixes #14047 jQuery.data should not miss data-* w/ hyphenated property names
...
http://bugs.jquery.com/ticket/14047
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-06-24 12:23:12 -04:00
terrycojones
3a434434c4
Moved too-early assignment inside the if stmt where the var is actually used. Close gh-1292.
2013-06-19 19:17:42 -04:00
Timmy Willison
6b46fde819
Update Sizzle. Avoid the use of frameElement. Fixes #13980 .
2013-06-03 16:11:17 -04:00
Jason Bedard
e53a919090
Avoid jQuery(this) and a closure for .toggle(Boolean), close gh-1271.
2013-06-02 22:27:40 -04:00
Richard Gibson
0b7c44a1da
Fix #13974 : XML .attr("type")
...
(cherry picked from commit adf3090318
)
2013-06-02 01:37:33 -04:00
Oleg
d0ca609600
Sizzle Update: fix #13936 - iframe reload should not affect Sizzle.
2013-05-29 17:19:57 +04:00
Richard Gibson
6fd5e480c1
Fix #13937 : Correctly scope .finish() following multi-element .animate(). Thanks @gnarf37. Close gh-1279.
...
(cherry picked from commit ae9e05e9f3
)
2013-05-28 16:49:48 -04:00
Oleg
68c9d0528c
Simplification of jQuery#contents method
2013-05-27 11:21:28 -04:00
Richard Gibson
26980c6ec9
Fix #13939 : Same-unit relative animations
...
(cherry picked from commit 00231d5d94
)
2013-05-26 19:53:58 -04:00
Julian Aubourg
a2cd89a795
Handles HEAD requests as if they always were 204. Fixes #13922 .
2013-05-23 02:11:37 +02:00
Eddie Monge
eabb56c274
Fix #13789 : Don't throw when module === null. Close gh-1269.
2013-05-20 18:57:40 +02:00
Richard Gibson
2f2e045ea6
Fix #13894 : CSS identifiers with backslash-escaped whitespace
...
(cherry picked from commit a75016634d
)
2013-05-15 21:25:46 -04:00
Richard Gibson
d8a35011ec
Fix #13835 : classes separated by form feed
2013-05-13 21:55:00 -04:00
Richard Gibson
d80c6aca18
Ref 3971c2eb
: Sync with 1.x-master
2013-05-13 20:37:42 -04:00
Richard Gibson
3971c2ebb2
Fix #13855 : line-height animations. Close gh-1265.
2013-05-13 18:17:25 -04:00
Rick Waldron
c1b8edfcc9
Optimize cleanData: allow direct access to data_priv for cleanup
2013-05-13 15:00:57 -04:00
Timmy Willison
1debe49ac7
Update Sizzle: fix sort order test
2013-05-10 15:44:06 -04:00
Timmy Willison
5dda0687f1
Update Sizzle: empty string arguments in pseudos. Fixes #13882 .
2013-05-10 12:48:39 -04:00
Dave Methvin
9fdbc8bf33
Fix #13223 . Re-allow leading space in HTML. Close gh-1264.
...
(cherry picked from commit 00eafdf028
)
2013-05-09 14:53:15 -04:00
Jason Bedard
c9267ab078
Only call jQuery(this) when needed. Close gh-1260.
2013-05-09 14:26:13 -04:00
Jason Bedard
5e42df0517
Use String.slice instead of String.substring in order to save a three bytes. Close gh-1261.
2013-05-08 19:56:13 +04:00
Timmy Willison
2fc6b658e8
Update Sizzle: minor fixes
2013-05-08 10:54:56 -04:00
Timmy Willison
7725f8e8b1
Update Sizzle: fix failing tests with attributes
2013-05-07 17:38:19 -04:00
Timmy Willison
24f2166400
Update Sizzle: minor selector issues
2013-05-07 15:26:49 -04:00
Timmy Willison
8d3c0506c8
Check nodeType of elements passed to selector-native's find. Fixes #13577 .
2013-05-06 15:42:00 -04:00
Timmy Willison
6d04ebfafb
No ticket: boolean -> bool in selector-native
2013-05-06 15:41:22 -04:00
Rick Waldron
2406b5e290
Fixes #13850 . Better removal of hyphenated data property names.
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-05-02 16:35:22 -04:00
Dave Methvin
6b5391508e
Fix #13255 . Set a default event target for Cordova.
2013-05-02 13:39:13 -04:00
Richard Gibson
9c4a428528
Fix #13846 : .prev sort direction
2013-05-01 11:33:06 -04:00
Richard Gibson
18cccd04a6
Fix #13803 : domManip remote-script evaluation per 1.9 (AJAX dataType "script")
2013-04-29 13:31:59 -04:00
Corey Frang
55e319aa52
Fixes #13815 : Ensure each element has its own private data object - Tests by @rwldrn
2013-04-24 17:09:30 -04:00
Oleg
3a6194076b
Fix #13818 : Add wrapMap entry for col element
2013-04-24 22:15:41 +04:00
Richard Gibson
78c803f1b5
Fix #13819 : .parent sort direction
...
(cherry picked from commit 6a816ec95f
)
2013-04-24 11:40:42 -04:00
Richard Gibson
ad71f47b27
Fix #13809 : Avoid collisions with words reserved by any version of ECMA-262
2013-04-24 09:06:11 -04:00
Richard Gibson
d8f7e83712
Fix #13810 : .replaceWith(nextSibling)
2013-04-22 21:08:38 -04:00
Richard Gibson
67a080b284
Fix #13807 : attribute/Object.prototype name collisions
2013-04-22 09:58:09 -04:00
Richard Gibson
fb1731ab16
Fix #13797 : .is with single-node context
...
(cherry picked from commit 4f786ba4d2
)
2013-04-20 11:51:51 -04:00
Richard Gibson
d754b50cb5
No ticket: Reduce .find
...
(cherry picked from commit 85b3c82445
)
2013-04-20 10:06:31 -04:00
Timmy Willison
3ef7a9683b
Remove unnecessary usage of getAttributeNode(). Fixes #12072 .
2013-04-18 13:51:12 -04:00
ros3cin
5179fa00b8
Refactor code in effects to use data_priv. Re- Close gh-1244.
2013-04-17 12:37:23 -04:00
Richard Gibson
03db1ada2c
Fix #12838 : hook point for non-jQuery.ajax synchronous script fetch/execute in domManip. Close gh-1051.
2013-04-17 11:27:57 -04:00
Renato Oliveira dos Santos
ea5c22ec12
Fix #13483 . Let slideDown() work after stop(). Close gh-1205.
2013-04-16 23:07:39 -04:00
Rick Waldron
2c7b1b8502
Loop cleanup
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-16 22:37:48 -04:00
Rick Waldron
77d7f26452
Fixes #13779 . Remove nodes in document order (uses for loop matching empty()).
2013-04-16 22:18:44 -04:00