mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 01:05:08 -05:00
Fixes a variety of typographical problems. Closes gh-853
This commit is contained in:
committed by
Rick Waldron
parent
c210e08c3a
commit
7b5ffcdac8
@@ -709,7 +709,7 @@ jQuery.extend({
|
||||
|
||||
}
|
||||
|
||||
// aborting is no longer a cancelation
|
||||
// aborting is no longer a cancellation
|
||||
strAbort = "abort";
|
||||
|
||||
// Install callbacks on deferreds
|
||||
|
||||
@@ -111,7 +111,7 @@ if ( jQuery.support.ajax ) {
|
||||
xml;
|
||||
|
||||
// Firefox throws exceptions when accessing properties
|
||||
// of an xhr when a network error occured
|
||||
// of an xhr when a network error occurred
|
||||
// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
|
||||
try {
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ jQuery.fn.extend({
|
||||
classNames = value.split( core_rspace );
|
||||
|
||||
while ( (className = classNames[ i++ ]) ) {
|
||||
// check each className given, space seperated list
|
||||
// check each className given, space separated list
|
||||
state = isBool ? state : !self.hasClass( className );
|
||||
self[ state ? "addClass" : "removeClass" ]( className );
|
||||
}
|
||||
|
||||
@@ -374,15 +374,15 @@ function augmentWidthOrHeight( elem, name, extra, isBorderBox ) {
|
||||
val -= parseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0;
|
||||
}
|
||||
|
||||
// at this point, extra isnt border nor margin, so remove border
|
||||
// at this point, extra isn't border nor margin, so remove border
|
||||
if ( extra !== "margin" ) {
|
||||
val -= parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
|
||||
}
|
||||
} else {
|
||||
// at this point, extra isnt content, so add padding
|
||||
// at this point, extra isn't content, so add padding
|
||||
val += parseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0;
|
||||
|
||||
// at this point, extra isnt content nor padding, so add border
|
||||
// at this point, extra isn't content nor padding, so add border
|
||||
if ( extra !== "padding" ) {
|
||||
val += parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
|
||||
}
|
||||
|
||||
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -404,7 +404,7 @@ Tween.propHooks = {
|
||||
return tween.elem[ tween.prop ];
|
||||
}
|
||||
|
||||
// passing any value as a 4th paramter to .css will automatically
|
||||
// passing any value as a 4th parameter to .css will automatically
|
||||
// attempt a parseFloat and fallback to a string if the parse fails
|
||||
// so, simple values such as "10px" are parsed to Float.
|
||||
// complex values such as "rotate(1rad)" are returned as is.
|
||||
|
||||
Reference in New Issue
Block a user