Fixes a variety of typographical problems. Closes gh-853

This commit is contained in:
Chris Faulkner
2012-07-11 09:46:21 -04:00
committed by Rick Waldron
parent c210e08c3a
commit 7b5ffcdac8
6 changed files with 19 additions and 19 deletions

View File

@@ -709,7 +709,7 @@ jQuery.extend({
}
// aborting is no longer a cancelation
// aborting is no longer a cancellation
strAbort = "abort";
// Install callbacks on deferreds

View File

@@ -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 {

View File

@@ -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 );
}

View File

@@ -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
View File

@@ -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.