timmywil
713cc86096
Move quickIs to Sizzle; Remove duplicate id matching in init; Added selector caching to Sizzle. Fixes #11826 .
2012-06-18 23:10:32 -04:00
timmywil
5c37506540
Update Sizzle
2012-06-18 14:33:37 -04:00
Rick Waldron
c31a5ee9aa
Fixes typo in comment
2012-06-18 14:17:10 -04:00
Rick Waldron
bab641a113
Fix comment block indents
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-06-18 13:28:47 -04:00
Rick Waldron
f7ee1f6e59
Update document.defaultView.getComputedStyle. Fixes #10373
2012-06-18 13:27:04 -04:00
timmywil
80295ed0e5
Update Sizzle: rewrite attributes handling to be simpler and more widespread when independent from jQuery. No changes to jQuery's attribute handling.
2012-06-17 15:42:57 -04:00
Sindre Sorhus
ea9ec95276
Fix #11231 , (append|prepend|before|after) w/ array of jQuery objects.
...
Closes gh-666, thanks to @rkatic!
2012-06-15 22:29:02 -04:00
Vladimir Zhuravlev
9c28a320c3
Fix #11566 , allow appending to DocumentFragment, closes gh-814.
2012-06-15 21:37:01 -04:00
Mike Sherov
0b352f6cb5
Fix #9505 , percentage position values in Webkit, closes gh-825.
2012-06-15 21:25:25 -04:00
Richard Gibson
a101e81bde
Interim take on cross-module variables, closes gh-817.
2012-06-15 21:01:44 -04:00
timmywil
75bed122e1
Update Sizzle: Removes an unnecessary link in the test suite
2012-06-15 16:10:45 -04:00
timmywil
8763bec032
Update Sizzle. Fixes #11109 .
2012-06-15 14:24:31 -04:00
timmywil
8f944a1b5c
Add necessary test html from Sizzle tests; Add an easy way to turn off QSA in tests
2012-06-15 02:09:38 -04:00
Mike Sherov
87e709cfcb
Fix regression for "-200px" in animations; closes gh-822.
...
Also removes fake IIFEs ffrom effects.
2012-06-11 21:01:23 -04:00
Dave Methvin
f8c02c886e
Fix #11328 . I've never metaKey I liked on IE 6/7/8.
...
The `event.metaKey` property is undefined there so we ensure it's set to `false` for lack of a better default. The `originalEvent.metaKey` property is untouched if you prefer to make other guesses about the platform or key state.
This is pretty much impossible to unit test since it is not only platform dependendent but also only executed for native browser events.
2012-06-11 18:44:54 -04:00
Dave Methvin
9e0c056171
Fix #10589 . Remove deprecated $.fn.data("events") special case.
...
No unit tests were harmed in the removal of this hack.
2012-06-11 17:16:19 -04:00
Jeffery To
801768386b
Fix #8109 , percent animations; fix #11854 , wrong this, close gh-808
2012-06-11 14:17:36 -04:00
Richard Gibson
1ac15582f2
Shrink support.js, closes gh-818
2012-06-11 13:24:26 -04:00
jaubourg
ac48a19b92
Some work to modularize ajax later on.
2012-06-11 14:00:16 +02:00
Mike Sherov
1bb1432fe9
Fix IE6 failures from forgotten shrinkWrapBlocks, closes gh-815
2012-06-10 21:30:43 -04:00
Mike Sherov
c80bc22728
Don't swap to measure dimensions unless the element is display:none. #807 Fixes #11293
2012-06-07 11:08:31 -04:00
Mike Sherov
b9b87d53c6
Less letterSpacing .animate() fail in IE. Fixes #8627
2012-06-06 19:03:10 -04:00
Mike Sherov
4dcd7dd324
Fixe dimensions tests. No core code changes. Supplements #11856
2012-06-06 17:06:03 -04:00
timmywil
37ffb29d37
Relativize all urls pertaining to dist/jquery.js so users can run their server from any file location; Make sure Sizzle is available for its tests in testrunner.
2012-06-04 18:04:11 -04:00
Rick Waldron
7c23b77af2
Strips IIFEs from modules; Always require built jQuery for tests.
2012-06-04 12:48:18 -04:00
Rick Waldron
9a3046c375
Space => tab indent correction
2012-06-03 10:42:24 -04:00
Mike Sherov
888635f8c1
No need to dasherize and use getPropertyValue, closes gh-805.
...
All invocations of curCSS are already camelcased. See the PR for discussion.
2012-06-01 08:24:23 -07:00
Rick Waldron
1442bf9449
Removes temp var, shaves 2 bytes from gzipped size
2012-05-31 18:15:57 -04:00
Mike Sherov
ba70f8aeb6
Fix #11724 , $(document).height() in Firefox 12. Closes gh-802.
...
This reopens #3838 for IE6 which is a regression on a fix in 1.7.2, but we'd rather break a really old IE than a really recent Firefox.
2012-05-31 09:24:44 -07:00
Richard Gibson
742872984e
Fix #11743 : Don't mask script errors in jQuery.ajax, closes gh-795.
2012-05-31 08:31:13 -07:00
Richard Gibson
2d37b6ccb8
Fix #11787 : Remove jQuery.curCSS, closes gh-801.
2012-05-31 08:21:53 -07:00
timmywil
3e2a77c5e8
Remove the tabindex attrHook. Fixes #8473
2012-05-30 13:46:50 -04:00
timmywil
f313384be3
Update Sizzle: Fixes fail in ajax module and Safari 5.0
2012-05-30 11:20:28 -04:00
timmywil
2c57d4cf27
Update Sizzle: fixes fail in traversing tests
2012-05-29 22:33:17 -04:00
timmywil
66f60ba818
Update Sizzle: regex cleanup
2012-05-29 20:48:07 -04:00
timmywil
b4b2e87058
Update Sizzle: save 5 bytes
2012-05-29 16:08:00 -04:00
timmywil
de1d3fa38f
Update Sizzle: fixes a bug with the adjacent combinator. Fixes #9939 .
2012-05-29 15:46:33 -04:00
timmywil
9c69891d2d
Update Sizzle: only one assertion is needed for getElementsByClassName
2012-05-29 15:13:53 -04:00
timmywil
75277c52dc
Update Sizzle
2012-05-29 14:58:34 -04:00
timmywil
a8d9d05388
Add quick-start documentation for testing with QUnit and using jQuery's helper methods.
2012-05-29 13:13:26 -04:00
Ben Alman
02dd7c570b
jQuery#addBack supports an optional selector that can be used to filter the prior set before adding it back. Fixes #9800
2012-05-29 12:04:27 -04:00
Richard Gibson
7f2cc46955
Fix #11767 . Modularize build and unit tests for exluding effects.
...
Closes gh-785. To build a version of jQuery without effects, use `grunt build:*:*:-effects`. The unit tests feature-check for the interfaces and skip the unit tests for effects if they don't detect it.
2012-05-28 22:36:23 -04:00
timmywil
e9e1221979
Update Sizzle: Case insensitive text filter. Fixes #8943
2012-05-28 20:10:57 -04:00
timmywil
6f7bdf8977
Update Sizzle: Add test for [selected] attribute selections. Addresses a small issue in IE8's boolean attribute selections with QSA.
2012-05-28 18:32:20 -04:00
Oleg
631f0933b0
Followup gh-796. Eliminate try-catch in oldIE, closes gh-799.
2012-05-28 17:26:35 -04:00
timmywil
fb21faa1bc
Update Sizzle: Fixes a fail in traversing and one in ajax.
2012-05-28 16:04:45 -04:00
timmywil
66cf58e79f
Move length tests to jQuery's selector tests as it relates to jQuery.merge.
2012-05-28 15:07:39 -04:00
timmywil
22d2fe3679
Update Sizzle: independent XML testing
2012-05-28 13:10:36 -04:00
timmywil
a4fc2edaab
Update Sizzle and add tests from the Sizzle suite that require jQuery for the selection to jquery/test/unit/selector.js
2012-05-28 12:41:58 -04:00
Oleg
d0763a37c6
Fix #11823 . Remove webkitConvertPointFromNodeToPage. Closes gh-796.
2012-05-27 12:37:35 -04:00
Richard Gibson
bc7231e323
Apply a GibsonTransform(-55) to the #10877 fix. Closes gh-788.
2012-05-24 21:54:04 -04:00
Mike Sherov
d5e5ce5bd0
Fix #11311 . Percents not pixels for top/left/bottom/right. Closes gh-793.
2012-05-24 21:39:31 -04:00
Mike Sherov
04c06e6858
Fix #11443 fix. Safari 5.0.x, reliable margin? Riiight. Closes gh-792.
2012-05-24 21:04:50 -04:00
Corey Frang
4621a0131b
Optimizations to animation queue/promise logic, closes gh-776.
2012-05-22 23:04:45 -04:00
Oleg
ae20e732f0
Fix #11755 . Avoid :hidden selector for animations. Closes gh-774.
2012-05-22 22:36:55 -04:00
Jason Moon
4757881759
Fix #11796 . Preserve oldIE change delegation on clone. Closes gh-789.
2012-05-22 21:29:13 -04:00
Mike Sherov
551f8510d5
Fix #11443 #11441 , shut up Chrome 19 and Safari 5.0.x. Closes gh-790.
...
checkClone and appendChecked test failures in Chrome 19; reliableMarginRight failures in Safari 5.
2012-05-22 10:11:47 -04:00
Mike Sherov
e0151e5827
Fix #10877 . Make outerWidth/Height a setter. Closes gh-783.
2012-05-21 13:44:19 -04:00
Jason Moon
e93f2a89e2
Fix #11649 . Preserve oldIE submit flag when cloning, closes gh-772.
2012-05-18 16:34:30 -04:00
Corey Frang
6bf3f20d4e
Fix #7157 . Animation callbacks shouldn't see an element as :animated.
...
Unless of course, there are other animations to be done! Closes gh-775.
2012-05-18 13:48:24 -04:00
Mike Sherov
0a2f93e6df
Inline the boxModel test, and correct unit test. Closes gh-781.
2012-05-18 12:59:31 -04:00
jaubourg
d55a764e6e
When IE6 & IE7 serve from the cache in async mode, resolves the request asynchronously. Fixes #11778 .
2012-05-16 23:43:16 +02:00
Mike Sherov
c4e22ad8b5
Fix #11721 . Remove jQuery.boxModel, deprecate jQuery.support.boxModel.
...
This removes all internal uses of `jQuery.support.boxModel`. jQuery has never run unit tests with Quirks Mode and has not even feigned support for several years, so these remnants weren't doing much except giving false hope.
For now, `jQuery.support.boxModel` continues to have a value indicating whether the W3C box model is *generally* in use, but be aware that this is easily overridden on an element-by-element basis by the `box-model` CSS property. So don't trust this value.
2012-05-15 23:29:20 -04:00
Dave Methvin
f76518e393
Rename .andSelf to .addBack, deprecate .andSelf #9800
2012-05-15 23:14:13 -04:00
Matt Farmer
ca48d49040
Fix #6724 , though the Mobile Safari wound remains. Closes gh-764.
2012-05-14 14:22:51 -04:00
jaubourg
7778c77222
Fixes #10285 (for real this time).
2012-05-12 23:26:39 +02:00
jaubourg
f93a2f569d
Preserves context objects when multiple Deferreds are passed to $.when(). Context is an array containing the original contexts in order. When non-observable value is given, associated context is undefined. In case only a single non-observable value is given, context is the global object (thanks so much Function.prototype.apply!). Fixes #11749 .
2012-05-12 21:41:39 +02:00
Dave Methvin
b6581df5de
Fix #11621 , $(document).trigger() must bubble to window.
2012-05-12 14:23:50 -04:00
Richard Gibson
afb34fe227
Scalarize [value, easing] before css-expanding; closes gh-750.
2012-05-11 16:22:00 -04:00
Dave Methvin
56d5c1c3a3
Fix #11738 . Remove deprecated .closest(Array) => Array.
2012-05-11 15:11:13 -04:00
Dave Methvin
c5fda2945c
Fix #11736 . Remove deprecated Deferred.isResolved/isRejected.
2012-05-11 15:02:18 -04:00
Rick Waldron
38fe2deab5
Use a do-while statement to reduce redundant code
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-05-07 16:49:23 -04:00
Rick Waldron
b26c34a69f
Fixes lint issues.
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-05-07 16:45:22 -04:00
Rick Waldron
df254d47e4
Additional reduction per @Raynos suggestion. Thanks!
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-05-07 16:38:55 -04:00
Rick Waldron
2af3642cd5
Further reduce historical cruft. Removes the untested and unnec. jQuery.nth()
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-05-07 16:05:05 -04:00
Rick Waldron
fbee36be16
Merge branch 'bug11720-nth-argument' of https://github.com/sindresorhus/jquery into 1.8pre
...
* 'bug11720-nth-argument' of https://github.com/sindresorhus/jquery :
Remove unnecessary arguments from .nth(). Fixes #11720
2012-05-07 15:50:04 -04:00
Sindre Sorhus
4de7b5412e
Remove unnecessary arguments from .nth(). Fixes #11720
...
Also use postfix increment to make it a little clearer.
2012-05-07 19:59:11 +02:00
jaubourg
03e0029761
@mikesherov said: no need for an else if!
2012-05-07 19:14:00 +02:00
Scott González
95a4a776cf
Simplify jQuery( html, props ), closes gh-765.
2012-05-06 21:24:46 -04:00
jaubourg
a743be19bd
Fixes #11402 . domManip now also removes the closing part of HTML comments or CDATA surrounding executed scripts. Unit tests added.
2012-05-06 01:27:01 +02:00
jaubourg
e3cf0e220c
Transform $.bindReady into $.ready.promise. It is now possible to use $.ready.promise or $.when( $.ready ) to get the ready promise. Costs *1* byte min/gzipped. Unit test added.
2012-05-06 01:05:03 +02:00
Mike Sherov
714b8ffd2b
reduce complexity of ready further, and try manipulating DOM to make sure we're really ready
2012-05-04 13:31:35 -04:00
Mike Sherov
f925c7a1c9
remove jQuery.quickReady, save bytes, style nits in tests
2012-05-04 10:17:30 -04:00
Oleg
bab6f5355c
-8 bytes
2012-05-04 00:18:08 +04:00
jaubourg
9cb1ab436d
Fixes the parameters given to load callback when the request errors.
2012-05-02 02:29:12 +02:00
Oleg
95291b44e6
jQuery.fn.load optimization
2012-05-01 14:47:14 -04:00
Oleg
6bed348a00
jQuery.ajaxSetup() data is merged with params. Fixes #10524
2012-05-01 14:39:45 -04:00
jaubourg
a1e3122706
Gains 1 more byte min/gz and reminds that isResolved and isRejected are deprecated in the comments.
2012-04-28 23:06:48 +02:00
jaubourg
13f4f5adc2
Merge branch '1.8-deferred-optimize2' of git://github.com/gibson042/jquery into PR754
2012-04-28 22:57:32 +02:00
jaubourg
5fc8d9e454
Simplifies the way the internal memory storage is handled.
2012-04-28 22:54:13 +02:00
jaubourg
6ad53c33d8
Opera announced they will start supporting the -webkit- prefix for a selected set of css properties. Let's put the inspection of -webkit- prefix properties as the last one in case this propagates to the style object and/or other browsers (the cssPrefixes array is inspected from right to left).
2012-04-28 16:52:32 +02:00
Richard Gibson
a25721a2cd
code compression
2012-04-26 16:08:17 -04:00
jaubourg
6e066a4db7
Trims down deferred.js. The gist of it is from the magnificent @gibson042, I just added some minor touches.
2012-04-25 18:25:52 +02:00
jaubourg
87c83b0458
Callbacks.add now accepts array-like objects (like Arguments). Now uses the slice method of the args array in fireWith rather than a quite slow jQuery.merge.
2012-04-25 18:25:51 +02:00
jaubourg
42dbc86573
Use real declaration since that helps gzip: thanks @gibson042.
2012-04-25 17:15:48 +02:00
jaubourg
245f5a244e
Regression: makes sure that all instances of a callback are removed. Unit test added.
2012-04-25 16:08:38 +02:00
jaubourg
97210d4e70
How about we save 62 bytes? Also ensure that the arguments array given to fireWith is copied internally.
2012-04-25 15:50:26 +02:00
jaubourg
f30744354f
Since we can pass an object to jQuery.Callbacks now, let's name it options to be consistent with the rest of the code.
2012-04-25 02:16:37 +02:00
jaubourg
ad329384ff
Uses a copy of the flags when they are given as an object rather than the object itself. That way, we're sure flags are immutable for the entire lifetime of the Callbacks instance.
2012-04-25 02:06:21 +02:00
Mike Sherov
54fab3174c
Fix #10067 . Create jQuery.quickReady; closes gh-736.
...
Allows us to get to the ready state sooner by not waiting for iframes to load. If that causes backcompat pain, use `jQuery.quickReady = false` as prescribed by your developer.
2012-04-23 15:44:27 -04:00