Commit Graph

3944 Commits

Author SHA1 Message Date
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
Richard Gibson
db0326b1fd Fix #13596; #13722: .replaceWith consistency. Close gh-1216. 2013-04-16 17:47:21 -04:00
Timmy Willison
c0088f2d26 Update Sizzle: src attribute in IE7. Fixes #13777. 2013-04-15 10:46:24 -04:00
Michał Gołębiowski
e80117adb4 Fixes #13760. Pass window, not this to the main IIFE. Closes gh-1238 2013-04-10 17:27:31 -04:00
Timmy Willison
ac9cad19fa Add onevar to jshintrc, but remove the option for linting the concatenated file 2013-04-09 12:48:34 -04:00
Timmy Willison
e01a6231c7 Update Sizzle: jshintrc 2013-04-09 12:40:50 -04:00
Timmy Willison
0fa52c11cb Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755. 2013-04-09 11:59:31 -04:00
Dave Methvin
85fc5878b3 Fix #13393. Avoid IE9 activeElement of death. 2013-04-08 21:35:48 -04:00
Oleg Gaidarenko
f1ba486ee3 Adjust tabIndex propHook for modern browsers and return -1 where appropriate. Close gh-1228. 2013-04-08 21:33:17 -04:00
Rick Waldron
570ec3dec7 Add note about deprecation of _removeData and _data
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-08 15:39:20 -04:00
Rick Waldron
d7d6b7a5c7 Move Data.prototype.accept => Data.accepts
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-08 15:37:16 -04:00
Timmy Willison
5833081356 Update Sizzle: pick IE over Chrome this time. Supplements #13378. 2013-04-08 15:35:40 -04:00
Oleg Gaidarenko
e8731410a4 No ticket. Use data_priv methods instead of jQuery._removeData and jQuery._data; Remove needless, internal second argument of jQuery.cleanData. Closes gh-1234 2013-04-08 15:35:16 -04:00
Oleg Gaidarenko
1a3939659b No ticket. Simplifies data methods and updates comments. Closes gh-1233 2013-04-08 15:31:47 -04:00
Timmy Willison
ff3f83fdf6 Revert Sizzle. Reopens #13378 2013-04-08 15:21:30 -04:00
Oleg Gaidarenko
f61314ff5c Fixes #8335. Do not allow add data to non-elements (2.x). Closes gh-1232 2013-04-08 15:10:39 -04:00
Timmy Willison
aadae5058a Update Sizzle: use documentElement in focus selector. Fixes #13378. 2013-04-08 14:17:01 -04:00
Richard Gibson
a120bbbfae Ref #12652: Allow overriding native .click() suppression
(cherry picked from commit 14b09ef98e)
2013-04-08 13:57:11 -04:00
Michał Gołębiowski
1233fc7788 Ref #13743. Remove support.boxModel, deprecated 1.3. Close gh-1230. 2013-04-08 12:49:19 -04:00
Oleg
eaedf098b3 No ticket: Small simplification of .removeProp. Close gh-1227. 2013-04-07 23:33:04 -04:00
Michał Gołębiowski
18d006762c No ticket: Move jQuery.fn.size to deprecated. Close gh-1229.
(cherry picked from commit e3777b6437)
2013-04-07 23:29:36 -04:00
Michał Gołębiowski
dca7681284 Improve CSS and Support: comments. Close gh-1220.
1) corrected box-sizing rules order - the unprefixed value should always be the last one
2) removed last semi-colons in CSS rules
3) updated support comments

code review changes + more consistent comment spacing
2013-04-06 17:09:52 -04:00
Dave Methvin
1b61026650 Fix #13721. Filter before .remove() loop so positionals work. Close gh-1221. 2013-04-06 16:37:32 -04:00
Dave Methvin
5031c9db4b Fix #13741. Make wrap/unwrap methods optional. Close gh-1222. 2013-04-06 16:00:58 -04:00
Richard Gibson
1114611f77 Ref 4ef51690: Update selector-native for new Sizzle dependencies 2013-04-05 01:04:44 -04:00
Richard Gibson
5d1dfe7474 Fix #13539: Utilize Sizzle hooks. Close gh-1215.
(cherry picked from commit 4ef516903e)
2013-04-05 00:37:36 -04:00
Rick Waldron
6358da8aa3 Fixes #13566. If there is a window object, and it has a document property, it might be the window we want, so define jQuery and $. Thanks to @dcherman for saving us from that embarrassment!
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-04 17:27:15 -04:00
Rick Waldron
37c801eda5 Fixes #13566. If there is a window object, define jQuery and $
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-04 16:55:16 -04:00
Michał Gołębiowski
7049877530 Correct oldIE-related comments, revert some workarounds. Close gh-1207. 2013-04-04 12:55:03 -04:00
Michał Gołębiowski
ba16ba2efc Update grunt-contrib-jshint to 0.3.0, part 2, close gh-1203. 2013-04-04 12:27:21 -04:00
Oleg
6da5eb1033 Follow-up for 22a4e5bd0a, fix .checkOn, add support tests. Cloes gh-1199. 2013-04-03 22:27:16 -04:00
Michał Gołębiowski
5aaa276e9e Remove an unused support check, correct a comment. Close gh-1211. 2013-04-03 21:21:23 -04:00
Michał Gołębiowski
8db7d6f20b Fix #13543. offsetWidth is wrong on non-1 zoom. Close gh-1194. 2013-04-03 21:00:38 -04:00
Michał Gołębiowski
1205103a72 Update grunt-contrib-jshint to 0.3.0, close gh-1204.
(cherry picked from 4adde5d145)

Conflicts:
	src/data.js
	src/effects.js
2013-04-03 20:51:30 -04:00
Rick Waldron
9eb838e418 Removes unnecessary semi-colon concatenation
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-03 13:01:49 -04:00
Rick Waldron
feea9394b7 Fixes #13714. jQuery.globalEval gotcha w/ strings that contain valid, prologue position strict mode pragma
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-03 11:26:07 -04:00
Rick Waldron
73b315538f Better approach the hasData side effects fix. Thanks gibson042
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-01 17:09:37 -04:00
Rick Waldron
332a490573 Avoid side-effects when calling jQuery.hasData
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-01 12:48:30 -04:00
Michał Gołębiowski
100d3c3516 moved bind, unbind, delegate & undelegate to event-alias.js; refs #13554 2013-03-25 22:06:50 -04:00
Steven Benner
237413e75d Changed .jshintrc predef lists to globals objects. 2013-03-25 21:41:34 -04:00
Timmy Willison
f319f42db0 Use semver versions for our in-between versions as well.
http://semver.org
2013-03-23 15:20:46 -04:00
Timmy Willison
6bbbb785db Remove unprefixed matchesSelector. Stick most common first. Update Sizzle 2013-03-23 15:18:16 -04:00
ruado1987
c9ca9bf509 Fix #13514: Set selectedIndex to -1 when non-matching value is set on a select. Close gh-1191.
(cherry picked from commit 48d71d0c3e)
2013-03-22 12:47:01 -04:00
Timmy Willison
8f4572406c Build selector.js from built sizzle. Update Sizzle. 2013-03-19 15:56:20 -04:00
stonelee
92b23673e6 No ticket: Move property descriptor assignment to save a byte. Close gh-1188. 2013-03-14 09:53:19 -04:00
Michał Z. Gołębiowski
79992d7523 Edited comments and minor adjustments. Fixes #13553. Closes gh-1195. 2013-03-12 21:06:25 -04:00
Timmy Willison
ae3524642c Update Sizzle: minor windows 8 issue 2013-03-11 12:55:26 -04:00
Rick Waldron
5c82d36f19 Revert 8d1c42296f 2013-03-06 15:11:20 -05:00
Rick Waldron
8d1c42296f Fixes #13571. jQuery.isPlainObject 1.9.x compatibility
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-06 14:42:24 -05:00
Rick Waldron
692afbcc5f Fixes #13551. Guard against illegal data access by undefined elem-owner
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-03 19:40:33 -05:00
Rick Waldron
91824bd292 Simplify data-* attr lookup with camelKey
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-02 14:09:39 -05:00
Michał Gołębiowski
761b96c301 Fixes #13550. .data should not miss attr() set data-* with hyphenated property names. Closes gh-1189 2013-03-02 13:04:48 -05:00
Rick Waldron
8f7218198d Remove dup camelKey path
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-03-01 19:33:12 -05:00
Rick Waldron
3212a29369 Fixes #13548. .data should not miss attr() set data-* with hyphenated property names 2013-03-01 19:02:57 -05:00
jrburke
34c4e122a3 Remove the define.amd.jQuery check, ref gh-1150. 2013-02-28 17:21:18 -05:00
Richard Gibson
3f05afbd8d Ref #13353, gh-1183: Capture onlyHandlers in jQuery.Event.isTrigger. 2013-02-28 16:59:12 -05:00
Oleg
22a4e5bd0a Squeeze support module. Close gh-1165. 2013-02-28 16:18:12 -05:00
jaubourg
eebc77849c Fixes #11151, #13388. Minor refactor of response conversion and when/where
responseXXX fields are set on the jqXHR. Close gh-1164.

(Cherry-picked from 69b3d5ce0f)
2013-02-28 15:01:10 -05:00
Dave Methvin
8be9cd1ce7 Add warnings and ignore the built Sizzle file. 2013-02-27 22:45:55 -05:00
Richard Gibson
1083f82d1e Fix #13434: native-API selector module
What's out:
* 6 KB
* attribute not equal selector
* positional selectors (:first; :eq(n); :odd; etc.)
* type selectors (:input; :checkbox; :button; etc.)
* state-based selectors (:animated; :visible; :hidden; etc.)
* :has(selector)
* custom selectors
* leading combinators (e.g., $collection.find("> *"))
* reliable functionality on XML fragments
* requiring all parts of a selector to match elements under context (e.g., $div.find("div > *") now matches children of $div)
* matching against non-elements
* reliable sorting of disconnected nodes
2013-02-27 22:45:55 -05:00
jaubourg
0618710913 Properly resets firingLength when emptying the list. Fixes #13517 2013-02-27 16:15:32 +01:00
Richard Gibson
1b6be73721 No ticket: Squeeze data 2013-02-26 23:41:57 -05:00
Nguyen Phuc Lam
8bc7bdebef Ref #13283, move .andSelf() to deprecated.js. Close gh-1170. 2013-02-26 22:57:12 -05:00
Richard Gibson
85f1985f24 Fix #13494: Fallback defineProperties to jQuery.extend. Close gh-1182.
Android<4 (ancient WebKit) doesn't have full ES5 support.
2013-02-26 22:38:06 -05:00
Scott González
b55bfb140f Whitespace. 2013-02-26 13:06:58 -05:00
Dave Methvin
2bbc3d5860 Fix #13471. $().on(".xyz"...) should avoid later crash.
If the event type is an empty string we end up hanging in .off() which makes for
mighty hard debugging. Instead treat it as a no-op. Docs seem clear this is not
allowed.
2013-02-26 12:19:09 -05:00
Timo Tijhof
31478b9012 Optimisation: Use String instead of window.String. Close gh-1176.
Follows-up 22e28b01e6.
2013-02-26 10:17:54 -05:00
Richard Gibson
6d188186d4 No ticket: move jQuery.expando to core 2013-02-25 15:48:22 -05:00
Richard Gibson
972de58990 No ticket: reduce support.js 2013-02-25 15:33:13 -05:00
Richard Gibson
6256c614fd Fix #13505: Yet another detached add patch 2013-02-24 23:24:28 -05:00
Richard Gibson
2129c233e9 No ticket: Restore support for Android<4.0 2013-02-23 21:16:28 -05:00
Richard Gibson
7d36c0fb6e Fix #13499: selector with leading ID matching only a name
(cherry picked from commit 5c4ab97a64)
2013-02-22 21:30:10 -05:00
Richard Gibson
9338a69e30 No ticket: Reduce size in anticipation of Sizzle-free builds
(cherry picked from commit dbf3056b25)
2013-02-22 16:36:39 -05:00
Pascal Borreli
85ee87b444 Fixes typos in core.js and css.js. Closes gh-1175 2013-02-21 12:00:51 -05:00
Rick Waldron
a464d75005 Adds module to jshintrc 2013-02-21 09:56:20 -05:00
isaacs
a128355b25 Support node-like module loaders. Closes gh-1103 2013-02-20 21:31:06 -05:00
Richard Gibson
0f977e6d03 No ticket: Update Sizzle 2013-02-17 23:12:44 -05:00
Rick Waldron
93043d002a Refactor: Data.prototype.access. Thanks to @RubyLouvre and @gibson042. Closes #1167 2013-02-13 12:14:20 -05:00
Richard Gibson
b734666f4d Fix #13265 #13332: traversing methods with text nodes. Close gh-1145. 2013-02-13 22:03:37 -05:00
Rick Waldron
1d5d959ee0 Optimized Data rewrite 2013-02-11 12:39:44 -05:00
Mark Raddatz
6a0ee2d9ed Fix #13401: replaceWith(""). Close gh-1163. 2013-02-08 09:49:14 -05:00
Richard Gibson
363299ac24 Ref #13316: Sync all documents on full vs. minified source. Close gh-1147. 2013-02-07 15:16:28 -05:00
Oleg
f3db084f7c Fix #13310. Get the right display value for disconnected nodes. Close gh-1156. 2013-02-04 15:22:07 -05:00
Richard Gibson
a5b456edff Ref fd43865c: restore correct logic 2013-02-04 09:35:33 -05:00
Rick Waldron
cf260fe285 Match the codebase standard, .split(" ") => .match( core_rnotwhite ) || []… no matter how awful it is >:|
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-02-03 18:09:49 -05:00
Rick Waldron
f50680898b Standardize on a.indexOf(b) === -1, per @gibson042 review notes
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-02-03 18:04:53 -05:00
Rick Waldron
fd43865c6d Reduce hasData per @gibson042 review notes.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-02-03 17:55:28 -05:00
Rick Waldron
64630eaf85 Reduce Data.prototype.add by using the returned length value of this.owners.push(owner)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-02-03 15:31:23 -05:00
Rick Waldron
7f94a5cc3a 2.0: Rewrite data.js (Incl. event, manipulation, tests) 2013-02-03 15:27:55 -05:00
Timmy Willison
21c7a056e2 Update Sizzle: detached node sorting in Webkit. Fixes #13331. 2013-02-01 18:06:02 -05:00
Dave Methvin
0e2977583c Fix #13335. Remove "use strict". 2013-02-01 17:17:39 -05:00
Andrew Plummer
d654914fd0 event: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153
Squashed commit of the following:

commit 5935a362c7
Author: Andrew Plummer <plummer.andrew@gmail.com>
Date:   Fri Feb 1 02:40:42 2013 +0900

    Using "hasOwnProperty" to check for direct properties "type" and
    "namespace" on events before triggering.
(cherry picked from commit f005af54e4)
2013-01-31 12:04:32 -06:00
Timmy Willison
f3ce0e696d Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406. 2013-01-30 20:37:13 -05:00
Timmy Willison
f5110cdec0 Minor updates. All parameters of an internal function are for internal use only. 2013-01-30 20:36:58 -05:00
Dave Methvin
a5c33fe1f7 Fix #13349. No need to sort simple .find() cases. 2013-01-29 20:48:48 -05:00
Dave Methvin
451d0c37d9 Fix comment about Safari shortfalls. 2013-01-29 16:56:32 -05:00
Dave Methvin
aa3c92979a Revert "Fix #13291, no longer need the functionish-regex guard."
Turns out this is still needed by Safari 5.1, which we're still supporting.

This reverts commit c4b1da4007.
2013-01-29 14:40:30 -05:00
adamcoulombe
54fc5fdfa2 Fix #13150, .has() w/o args checks for any callbacks. Close gh-1111. 2013-01-27 13:35:30 -05:00
Richard Gibson
64b55f0b79 Fix #13315 for IE9: compare typeof xmlNode.method to var instead of literal "undefined" for safer uglification
(cherry picked from commit ec9b38a34f)
2013-01-27 10:04:09 -05:00
Dave Methvin
6f7b6915bf Fix #12656. Make event shorthands excludable. 2013-01-27 09:07:00 -05:00
Dave Methvin
a6c358d046 Fix #12846. Restore overflow when animation is stopped. 2013-01-26 22:02:15 -05:00
Dave Methvin
c4b1da4007 Fix #13291, no longer need the functionish-regex guard. 2013-01-26 20:31:37 -05:00
Richard Gibson
fb0f295292 Fix #13282: QtWebKit (e.g., phantomjs) can only apply Arrays 2013-01-24 23:45:44 -05:00
Richard Gibson
f39ca223e0 Fix #13281: update Sizzle 2013-01-24 23:11:47 -05:00
byroot
bfc61b879e Don't try and convert data for 204 No Content responses. Fixes #13292. Fixes #13261. 2013-01-24 02:34:02 +01:00
Timmy Willison
caac041fcc Ignore file inputs when serializing forms. File input serialization is handled by plugins. Fixes #13306. 2013-01-23 12:23:46 -05:00
Timmy Willison
b326225d90 Fix failing tests, add support for empty spans in Opera. Supplements #13132, #10406. 2013-01-21 18:03:07 -05:00
Timmy Willison
372e04e78e Treat an element as hidden if either offsetWidth or offsetHeight is 0. Fixes #13132, #10406. 2013-01-21 17:12:31 -05:00
jaubourg
1c77259d06 Removes unnecessary call to .off() as noted by @dcherman. 2013-01-21 03:05:03 +01:00
Oleg
cbe0c2ef90 2.0: Reduce offset module. Close gh-1139. 2013-01-20 18:36:43 -05:00
Oleg
19def21df4 Fix #13232, fix jQuery.buildFragment for tables, close gh-1138. 2013-01-20 18:30:56 -05:00
Oleg
dbf4926e31 Consistently clean up after .ready() handler, close gh-1135. 2013-01-20 18:20:53 -05:00
jaubourg
1ad874f344 Further script transport cleanup, close gh-1123. 2013-01-20 18:10:07 -05:00
jaubourg
c373a499d3 Reduced script transport 2013-01-20 18:08:59 -05:00
Timmy Willison
7632711d5c Update Sizzle: fixes native slice usage 2013-01-18 10:48:39 -05:00
Richard Gibson
8871218cdf Fix jQuery #13251: use slice instead of substring
(cherry picked from commit 37eb6125c0)
2013-01-17 17:01:42 -05:00
Richard Gibson
50290b8ffb Ref cc324abf: use acceptData to determine when it is safe to add event handlers 2013-01-16 14:36:24 -05:00
danilsomsikov
cc324abf73 Fix #8335: Avoid memory leak by never setting data on non-element non-document nodes. Close gh-1127. 2013-01-16 14:31:29 -05:00
Richard Gibson
a96aa9e270 Fix #13233: re-allow .replaceWith of text nodes. Close gh-1137.
(cherry picked from commit 6b1b0a26b4)
2013-01-16 13:57:00 -05:00
Richard Gibson
2f0756b534 Fix #13182: update Sizzle 2013-01-16 00:18:04 -05:00
Mike Sherov
10cc33e27b Fix #13183: Wrong animation initial value calc. Ref gh-1136. 2013-01-15 23:34:22 -05:00
Oleg
eff59f97ac Add a comment 2013-01-13 22:05:41 -05:00
Oleg
38ad408f82 Fixes #13200 - innerHTML in buildFragment need end tags 2013-01-13 22:05:37 -05:00
Richard Gibson
31b9579715 Fix #13203: delegated events with selector matching Object.prototype property 2013-01-13 21:40:24 -05:00
Richard Gibson
b75b9ef8d0 Fix #13180: don't delegate into SVG <use>
(cherry picked from commits 36457cb6afc12d4a755cf93442a502783a669517..f860e0bd2f7dd228a14704d78ed5208cbe870d01)
2013-01-13 20:00:03 -05:00
Richard Gibson
7767234364 No ticket: compress event.js
(cherry picked from commit 9cf812d7a2)
2013-01-13 19:41:31 -05:00
Dave Methvin
c0c1bdde60 Update copyrights used in file headers. 2013-01-11 16:08:09 -05:00
Richard Gibson
bad229c53e Update Sizzle 2013-01-11 13:01:56 -05:00
Richard Gibson
c1a59f78c2 Update Sizzle 2013-01-10 15:54:32 -05:00
Richard Gibson
ca49ef98d5 Ref gh-1117: Use native push for size and performance 2013-01-09 10:11:33 -05:00
Oleg
8e6c1ba92f Ref gh-1117: Don't stop on a falsy value in buildFragment. Close gh-1124. 2013-01-09 09:52:01 -05:00
nanto
2f6b3f818f Propagate context of returned deferred object in Deferred.then(). Fixes #13160. 2013-01-08 16:37:50 +01:00
jaubourg
7cc629d097 Opera 12.0 still implements an older version of the DOM so cloneNode cannot be called without an argument 2013-01-08 11:15:36 +01:00
Oleg
57d9dcd4a0 Use while loop instead of for 2013-01-08 02:41:25 +00:00
Oleg
58b4994f56 Always use core_push in jQuery.buildFragment 2013-01-08 02:41:21 +00:00
Oleg
c9bf5c5e90 Bring back jQuery.buildFragment and remove jQuery.clean 2013-01-08 02:41:15 +00:00
Oleg
054daa20af Ref #8908. Update IE9 css clone fix. Close gh-1119. 2013-01-08 02:08:47 +00:00
Oleg
9434060722 Simplify .wrapAll() and fix style. Close gh-1116. 2013-01-08 01:35:55 +00:00
Corey Frang
b6abb31df4 Fix #13103. Add .finish() method. Close gh-1118. 2013-01-08 01:19:25 +00:00
nanto_vi
412d910697 Eliminate redundancy of Deferred.then(). 2013-01-08 01:03:38 +09:00
jaubourg
62acda819f Adds the abort on unload trick back in since IE9 still exhibits the bug 2013-01-07 10:34:14 -05:00
jaubourg
f6df0301c8 Fixes comments per @rwldrn. Makes sure failing requests from local protocol yields status 404, not 0. 2013-01-07 10:34:11 -05:00
jaubourg
17049c73bc 2.0: reduced xhr transport 2013-01-07 10:34:07 -05:00
nanto_vi
e7fdda9819 Propagete context of returned deferred object in Deferred.then(). Fixes #13160 2013-01-07 02:49:15 +09:00
Dave Methvin
c61150427f Fix #13143. Event target cannot be a text node.
Check removed in the initial 2.0 refactor but Chrome still needs it. No effective way to unit test; see the test case in #13143.
2013-01-06 10:25:02 -05:00
Dave Methvin
c0241a47e2 Ref #12945, IE9/10 still needs safe .getAttribute check. 2013-01-04 22:29:27 -05:00
Dave Methvin
e9ab6a74d4 Fix #12945. Check for .getAttribute so IE9 is happy. 2013-01-04 17:35:01 -05:00
Dave Methvin
1e5b14a131 Remove appendChecked detect and stranded markup. 2013-01-03 20:57:00 -05:00
Dave Methvin
9a32f12bdf Remove oldIE styleFloat detect. 2013-01-03 20:56:02 -05:00
Dave Methvin
cef3450228 Remove noCloneEvent detects and white-box unit test. 2013-01-03 20:55:59 -05:00
Dave Methvin
4ee1b03c54 Remove oldIE submit/change bubble detects. 2013-01-03 20:55:56 -05:00
Dave Methvin
11e6a66002 Remove deleteExpando detect. 2013-01-03 20:55:52 -05:00
Dave Methvin
aa529696fb Remove inlineBlockNeedsLayout and shrinkWrapBlocks. 2013-01-03 20:52:38 -05:00
Dave Methvin
02d7f9aee3 Remove support.reliableHiddenOffsets detect. 2013-01-03 20:52:35 -05:00