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