Commit Graph

372 Commits

Author SHA1 Message Date
Oleg
642e9a4557 Simplify replaceWith method. Closes gh-1276 2013-09-17 13:24:27 +04:00
Oleg
cb37994d76 No ticket: fix code style inconsistencies. Closes gh-1361 2013-09-13 01:04:29 +04: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
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
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
b534ee2ccf Always return jQuery in modules that can be included separately 2013-09-08 21:25:27 -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
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
ruado1987
5f1aa2354a Fixes #13976: Garbage input should not cause error in buildFragment. Close gh-1284 2013-07-01 22:31:01 +04:00
Rick Waldron
c1b8edfcc9 Optimize cleanData: allow direct access to data_priv for cleanup 2013-05-13 15:00:57 -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
d8f7e83712 Fix #13810: .replaceWith(nextSibling) 2013-04-22 21:08:38 -04:00
Timmy Willison
3ef7a9683b Remove unnecessary usage of getAttributeNode(). Fixes #12072. 2013-04-18 13:51:12 -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
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
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
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
Mark Raddatz
6a0ee2d9ed Fix #13401: replaceWith(""). Close gh-1163. 2013-02-08 09:49:14 -05:00
Rick Waldron
7f94a5cc3a 2.0: Rewrite data.js (Incl. event, manipulation, tests) 2013-02-03 15:27:55 -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
Richard Gibson
fb0f295292 Fix #13282: QtWebKit (e.g., phantomjs) can only apply Arrays 2013-01-24 23:45:44 -05:00
Oleg
19def21df4 Fix #13232, fix jQuery.buildFragment for tables, close gh-1138. 2013-01-20 18:30:56 -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
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
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
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
9434060722 Simplify .wrapAll() and fix style. Close gh-1116. 2013-01-08 01:35:55 +00:00
Dave Methvin
445dbd9d95 Revert data.js rewrite.
Reverts the following commits:

commit f717226b3a
Author: Rick Waldron <waldron.rick@gmail.com>
Date:   Mon Dec 31 18:06:38 2012 -0500

Only splice from internal arrays when item actually exists.

commit b9cdc4136b
Author: Rick Waldron <waldron.rick@gmail.com>
Date:   Mon Dec 31 16:20:35 2012 -0500

Updates to data.js re-write to pass events and manipulation

commit d1de3000c6
Author: Rick Waldron <waldron.rick@gmail.com>
Date:   Mon Dec 31 15:09:45 2012 -0500

2.0: Rewrite data.js
2013-01-03 20:43:01 -05:00
Rick Waldron
b9cdc4136b Updates to data.js re-write to pass events and manipulation (full pass in local test runs)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-31 16:23:20 -05:00
Oleg
39e6792b5c Rename fixCloneNodeIssues helper to fixInput
Move support comment
2012-12-28 23:41:31 +04:00
Oleg
1490afe693 Add empty line 2012-12-28 20:16:49 +04:00
Oleg
ecd106280a wrapMap.col = wrapMap.tr 2012-12-28 19:59:55 +04:00
Oleg
9dbfbe5b9a wrapMap.thead = wrapMap.tr
Add support comments
2012-12-28 19:50:22 +04:00
Oleg
6215840995 Remove fix for #11280 2012-12-28 19:16:22 +04:00
Oleg
378ab82865 Remove fieldset from wrapMap 2012-12-28 19:09:50 +04:00
Oleg
d3d8ed443c Add comments for optgroup and option elements in wrapMap
Add tests for optgroup element
2012-12-28 18:56:29 +04:00
Oleg
f193acf3a1 Remove fix for #4484, add more tests 2012-12-28 18:54:47 +04:00
Oleg
25712d77c3 Simplify getAll helper 2012-12-24 04:29:41 +04:00
Oleg
fa3dad300f Simplify check for non-Elements 2012-12-24 04:28:52 +04:00
Oleg
33be48acfd Remove fix for object element 2012-12-24 04:16:17 +04:00
Oleg
5e64281a11 Save 43 bytes 2012-12-24 03:04:38 +04:00
Oleg
5f8e99b368 Use common loop iteration idiom 2012-12-24 03:04:37 +04:00
Oleg
f66c33d751 Remove fix for #9587 2012-12-24 03:04:30 +04:00
Oleg
87a7690afa Use correct comments 2012-12-24 03:04:30 +04:00
Oleg
9256ba5380 Simplify check for empty set in jQuery#domManip 2012-12-24 03:04:30 +04:00
Oleg
9e703a2a19 Code style changes
Save one byte
2012-12-24 03:04:19 +04:00
Oleg
d41ac85ca3 Save one byte 2012-12-24 03:04:19 +04:00
Oleg
3c1b42805d Take care of comments 2012-12-24 03:04:19 +04:00
Oleg
ec75705f88 Remove needless expression 2012-12-24 03:04:19 +04:00
Oleg
3eb1f64966 Use GET method in jQuery#domManip 2012-12-24 03:04:18 +04:00
Oleg
a8b38b0e6b Remove couple of spaces 2012-12-24 03:04:18 +04:00
Oleg
8958f7cd9d More simplifications fore jQuery#html 2012-12-24 03:04:18 +04:00
Oleg
bc70e0c718 Speed up iteration in jQuery#domManip if it called with function inside first argument 2012-12-24 03:04:18 +04:00
Oleg
f07e6758ae Simplify execution of script element if it processed without src attribute 2012-12-24 03:04:08 +04:00
Oleg
d086aa16b3 Use jQuery.merge only if it really necessary 2012-12-24 03:04:08 +04:00
Oleg
d552b94463 Simplify jQuery.expando 2012-12-24 03:04:08 +04:00
Oleg
c334878871 Simplify wrapMap 2012-12-24 03:04:08 +04:00
Oleg
1043fa8971 Move all helpers to the end of the module 2012-12-24 03:04:08 +04:00
Oleg
a10dd521df Remove fixDefaultChecked helper 2012-12-24 03:03:28 +04:00
Oleg
61d01c8d35 Simplify getAll helper 2012-12-24 03:03:28 +04:00
Oleg
7a5000a39e Simplify fixCloneNodeIssues helper 2012-12-24 03:03:28 +04:00
Oleg
329d5e1d03 Remove memory fix 2012-12-24 03:03:28 +04:00
Oleg
e9ea6679b2 Change "isFunc" variable to "isFunction" 2012-12-24 03:03:28 +04:00
Oleg
76bde01be8 Code style changes 2012-12-24 03:03:28 +04:00
Oleg
8c4b9f082b Simplify jQuery#wrap 2012-12-24 03:03:28 +04:00
Oleg
2378438a97 Code style changes 2012-12-24 03:03:27 +04:00
Oleg
28f6fcb763 Remove unused variables 2012-12-24 03:03:19 +04:00
Oleg
eac4e8e251 Remove removal of container children through removeChild method 2012-12-24 03:03:19 +04:00
Oleg
7a2a82ba62 Remove tbody check 2012-12-24 03:03:19 +04:00
Oleg
c1c97b474e Remove leading white space check 2012-12-24 03:03:19 +04:00
Oleg
fd2af63bca Remove createSafeFragment helper 2012-12-24 03:03:19 +04:00
Oleg
5afc93c436 Fix #13094. Pass index to .before(fn) fn as documented. Close gh-1093. 2012-12-20 20:55:30 -05:00
Richard Gibson
452e32769d compress -16 min+gzip 2012-12-13 12:41:25 -05:00
Oleg
643ecf9d63 Ref #8908, gh-886. Avoid clone identity crisis in IE9/10. Close gh-1036. 2012-12-13 10:42:43 -05:00
Dave Methvin
0018f7700b Fix #11230. .appendTo and pals should always stack. 2012-12-13 09:19:41 -05:00
Paul Ramos
f12611feb4 Fix #4087. insertAfter, insertBefore, etc do not work if origin and destination are same element. Close gh-1068. 2012-12-11 23:35:22 -05:00
Richard Gibson
1d1c80d377 copy defaultSelected in cloneFixAttributes 2012-12-11 23:05:18 -05:00
Oleg
93e18922c5 Fix #12956. Improve cloneFixAttributes for IE9/10 case. Close gh-1034.
Remove clear(merge)Attributes hack
2012-12-11 22:06:26 -05:00
Dave Methvin
2eda329be6 Ref #13019 and gh-1062. Use parentNode check instead of isDisconnected(). 2012-12-09 14:46:06 -05:00
Dave Methvin
f8f52cfcf4 Fix #13019. Disconnected nodes with .replaceWith are a noop. Close gh-1062. 2012-12-09 14:10:38 -05:00
Dave Methvin
282c044d64 Fix #13013. Move jQuery.buildFragment() to compat plugin. 2012-12-06 21:17:27 -05:00
Rod Vagg
551c2c9f4a Fixes #12449. make replaceWith() clone elements where required. Closes gh-920 2012-12-04 21:50:22 -05:00
Paul Ramos
13449a99b2 Fix #11989. Remove fragment cache, moving to jquery-compat. Close gh-1052. 2012-12-04 21:30:37 -05:00
Oleg
9ae6b1a019 Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044. 2012-11-27 21:32:59 -05:00
Richard Gibson
0877d424e0 Fix #12959: Optimize library-wide patterns 2012-11-27 01:59:22 +01:00
dcooper
78c1560065 Fix #9960, allow manipulation for parent document nodes. Close gh-924. 2012-11-24 16:53:27 -05:00
Richard Gibson
bb570fc373 Fix #12920: remove addMandatoryAttributes. Close gh-1037. 2012-11-20 22:57:41 -05:00
Richard Gibson
22f58bd688 fix Safari test failures 2012-11-19 17:17:48 -05:00