diff options
author | Chris Faulkner <thefaulkner@gmail.com> | 2012-07-11 09:46:21 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-07-11 09:46:21 -0400 |
commit | 7b5ffcdac8e1cc4b110690cddc6345f44ae0aaab (patch) | |
tree | 0a94bba47cd44ac6da50bb5bdefe4f804f733a86 /src | |
parent | c210e08c3a73dca302afee24186b48f62ada9fba (diff) | |
download | jquery-7b5ffcdac8e1cc4b110690cddc6345f44ae0aaab.tar.gz jquery-7b5ffcdac8e1cc4b110690cddc6345f44ae0aaab.zip |
Fixes a variety of typographical problems. Closes gh-853
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 2 | ||||
-rw-r--r-- | src/ajax/xhr.js | 2 | ||||
-rw-r--r-- | src/attributes.js | 2 | ||||
-rw-r--r-- | src/css.js | 6 | ||||
-rw-r--r-- | src/effects.js | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/ajax.js b/src/ajax.js index ac08de36c..90ac20486 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -709,7 +709,7 @@ jQuery.extend({ } - // aborting is no longer a cancelation + // aborting is no longer a cancellation strAbort = "abort"; // Install callbacks on deferreds diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index 435c174bf..b6f5d7f48 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -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 { diff --git a/src/attributes.js b/src/attributes.js index 9fc93679d..879064b2a 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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 ); } diff --git a/src/css.js b/src/css.js index 2b756c392..6c43be399 100644 --- a/src/css.js +++ b/src/css.js @@ -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; } diff --git a/src/effects.js b/src/effects.js index ad4152a20..f28ef9418 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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. |