|
2286 | 2286 |
|
2287 | 2287 | return setMatcher(
|
2288 | 2288 | i > 1 && elementMatcher(matchers),
|
2289 |
| - i > 1 && toSelector(// If the preceding token was a descendant combinator, insert an implicit any-element `*` |
2290 |
| - tokens.slice(0, i - 1).concat({ value: tokens[i - 2].type === " " ? "*" : "" })).replace(rtrimCSS, "$1"), |
| 2289 | + i > 1 && toSelector( |
| 2290 | + // If the preceding token was a descendant combinator, insert an implicit any-element `*` |
| 2291 | + tokens.slice(0, i - 1).concat({ value: tokens[i - 2].type === " " ? "*" : "" }) |
| 2292 | + ).replace(rtrimCSS, "$1"), |
2291 | 2293 | matcher,
|
2292 | 2294 | i < j && matcherFromTokens(tokens.slice(i, j)),
|
2293 | 2295 | j < len && matcherFromTokens(tokens = tokens.slice(j)),
|
|
2680 | 2682 |
|
2681 | 2683 | is(selector) {
|
2682 | 2684 | return !!winnow(
|
2683 |
| - this, // If this is a positional/relative selector, check membership in the returned set |
2684 |
| - // so $("p:first").is("p:last") won't return true for a doc with two "p". |
| 2685 | + this, |
| 2686 | + // If this is a positional/relative selector, check membership in the returned set |
| 2687 | + // so $("p:first").is("p:last") won't return true for a doc with two "p". |
2685 | 2688 | typeof selector === "string" && rneedsContext.test(selector) ? jQuery(selector) : selector || [],
|
2686 | 2689 | false
|
2687 | 2690 | ).length;
|
|
2847 | 2850 |
|
2848 | 2851 | // Locate the position of the desired element
|
2849 | 2852 | return indexOf.call(
|
2850 |
| - this, // If it receives a jQuery object, the first element is used |
| 2853 | + this, |
| 2854 | + // If it receives a jQuery object, the first element is used |
2851 | 2855 | elem.jquery ? elem[0] : elem
|
2852 | 2856 | );
|
2853 | 2857 | },
|
|
3440 | 3444 | // state = "resolved" (i.e., fulfilled)
|
3441 | 3445 | // state = "rejected"
|
3442 | 3446 | state = stateString;
|
3443 |
| - }, // rejected_callbacks.disable |
3444 |
| - // fulfilled_callbacks.disable |
3445 |
| - tuples[3 - i][2].disable, // rejected_handlers.disable |
3446 |
| - // fulfilled_handlers.disable |
3447 |
| - tuples[3 - i][3].disable, // progress_callbacks.lock |
3448 |
| - tuples[0][2].lock, // progress_handlers.lock |
| 3447 | + }, |
| 3448 | + // rejected_callbacks.disable |
| 3449 | + // fulfilled_callbacks.disable |
| 3450 | + tuples[3 - i][2].disable, |
| 3451 | + // rejected_handlers.disable |
| 3452 | + // fulfilled_handlers.disable |
| 3453 | + tuples[3 - i][3].disable, |
| 3454 | + // progress_callbacks.lock |
| 3455 | + tuples[0][2].lock, |
| 3456 | + // progress_handlers.lock |
3449 | 3457 | tuples[0][3].lock
|
3450 | 3458 | );
|
3451 | 3459 | }
|
|
6336 | 6344 | if (!isBorderBox && computedVal >= 0) {
|
6337 | 6345 | // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
|
6338 | 6346 | // Assuming integer scroll gutter, subtract the rest and round down
|
6339 |
| - delta += Math.max(0, Math.ceil( |
6340 |
| - elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - computedVal - delta - extra - 0.5 // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter |
6341 |
| - // Use an explicit zero to avoid NaN (gh-3964) |
6342 |
| - )) || 0; |
| 6347 | + delta += Math.max(0, Math.ceil(elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - computedVal - delta - extra - 0.5)) || // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter |
| 6348 | + // Use an explicit zero to avoid NaN (gh-3964) |
| 6349 | + 0; |
6343 | 6350 | }
|
6344 | 6351 |
|
6345 | 6352 | return delta + marginDelta;
|
|
6400 | 6407 | dimension,
|
6401 | 6408 | extra || (isBorderBox ? "border" : "content"),
|
6402 | 6409 | valueIsBorderBox,
|
6403 |
| - styles, // Provide the current computed size to request scroll gutter calculation (gh-3589) |
| 6410 | + styles, |
| 6411 | + // Provide the current computed size to request scroll gutter calculation (gh-3589) |
6404 | 6412 | val
|
6405 | 6413 | ) + "px";
|
6406 | 6414 | }
|
|
9443 | 9451 | } else {
|
9444 | 9452 | complete(
|
9445 | 9453 | xhrSuccessStatus[xhr.status] || xhr.status,
|
9446 |
| - xhr.statusText, // Support: IE <=9 only |
9447 |
| - // IE9 has no XHR2 but throws on binary (trac-11426) |
9448 |
| - // For XHR2 non-text, let the caller handle it (gh-2498) |
| 9454 | + xhr.statusText, |
| 9455 | + // Support: IE <=9 only |
| 9456 | + // IE9 has no XHR2 but throws on binary (trac-11426) |
| 9457 | + // For XHR2 non-text, let the caller handle it (gh-2498) |
9449 | 9458 | (xhr.responseType || "text") !== "text" || typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText },
|
9450 | 9459 | xhr.getAllResponseHeaders()
|
9451 | 9460 | );
|
|
0 commit comments