]> source.dussan.org Git - jquery.git/commitdiff
Fixes a variety of typographical problems. Closes gh-853
authorChris Faulkner <thefaulkner@gmail.com>
Wed, 11 Jul 2012 13:46:21 +0000 (09:46 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Wed, 11 Jul 2012 13:46:21 +0000 (09:46 -0400)
speed/jquery-basis.js
src/ajax.js
src/ajax/xhr.js
src/attributes.js
src/css.js
src/effects.js

index fc1842087e239ae3fe8d190210b43262808784e6..f5cb04ce36542d5695e44e154e4346159273f76b 100644 (file)
@@ -519,7 +519,7 @@ jQuery.extend({
 
        noop: function() {},
 
-       // Evalulates a script in a global context
+       // Evaluates a script in a global context
        globalEval: function( data ) {
                if ( data && rnotwhite.test(data) ) {
                        // Inspired by code by Andrea Giammarchi
@@ -1308,7 +1308,7 @@ jQuery.fn.extend({
                                        classNames = value.split( 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 );
                                }
@@ -1362,7 +1362,7 @@ jQuery.fn.extend({
                                                var option = options[ i ];
 
                                                if ( option.selected ) {
-                                                       // Get the specifc value for the option
+                                                       // Get the specific value for the option
                                                        value = jQuery(option).val();
 
                                                        // We don't need an array for one selects
@@ -2634,7 +2634,7 @@ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^
        baseHasDuplicate = true;
 
 // Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
+// optimization where it does not always call our comparison
 // function. If that is the case, discard the hasDuplicate value.
 //   Thus far that includes Google Chrome.
 [0, 0].sort(function(){
@@ -3413,7 +3413,7 @@ if ( document.documentElement.compareDocumentPosition ) {
        };
 }
 
-// Utility function for retreiving the text value of an array of DOM nodes
+// Utility function for retrieving the text value of an array of DOM nodes
 function getText( elems ) {
        var ret = "", elem;
 
@@ -4147,12 +4147,12 @@ jQuery.fn.extend({
                        if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
                                // IE copies events bound via attachEvent when
                                // using cloneNode. Calling detachEvent on the
-                               // clone will also remove the events from the orignal
+                               // clone will also remove the events from the original.
                                // In order to get around this, we use innerHTML.
                                // Unfortunately, this means some modifications to
                                // attributes in IE that are actually only stored
                                // as properties will not be copied (such as the
-                               // the name attribute on an input).
+                               // name attribute on an input).
                                var html = this.outerHTML, ownerDocument = this.ownerDocument;
                                if ( !html ) {
                                        var div = ownerDocument.createElement("div");
@@ -4884,7 +4884,7 @@ jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".sp
 jQuery.extend({
 
        get: function( url, data, callback, type ) {
-               // shift arguments if data argument was omited
+               // shift arguments if data argument was omitted
                if ( jQuery.isFunction( data ) ) {
                        type = type || callback;
                        callback = data;
@@ -4909,7 +4909,7 @@ jQuery.extend({
        },
 
        post: function( url, data, callback, type ) {
-               // shift arguments if data argument was omited
+               // shift arguments if data argument was omitted
                if ( jQuery.isFunction( data ) ) {
                        type = type || callback;
                        callback = data;
@@ -4946,7 +4946,7 @@ jQuery.extend({
                // Create the request object; Microsoft failed to properly
                // implement the XMLHttpRequest in IE7 (can't request local files),
                // so we use the ActiveXObject when it is available
-               // This function can be overriden by calling jQuery.ajaxSetup
+               // This function can be overridden by calling jQuery.ajaxSetup
                xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ?
                        function() {
                                return new window.XMLHttpRequest();
@@ -5148,7 +5148,7 @@ jQuery.extend({
                                jQuery.event.trigger( "ajaxStop" );
                        }
 
-                       // close opended socket
+                       // close opened socket
                        xhr.abort();
                        return false;
                }
@@ -5254,7 +5254,7 @@ jQuery.extend({
                        complete();
                }
 
-               // firefox 1.5 doesn't fire statechange for sync requests
+               // Firefox 1.5 doesn't fire statechange for sync requests
                if ( !s.async ) {
                        onreadystatechange();
                }
index ac08de36c96c06c8ebdb82a33611a6ba79cf7495..90ac20486b41cb5e6f96a5d735b69276b6610466 100644 (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
index 435c174bfefd700e4ef0ba439c05eb100848d565..b6f5d7f48455843afe5cc5784aa73a89c3b38786 100644 (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 {
 
index 9fc93679d4624955b4aebf5d21034bc938e88d68..879064b2a7cad9bcce931c89198693a2e91081a5 100644 (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 );
                                }
index 2b756c392b317ddfca0412bdc5db44c5d3dc3d2a..6c43be3999cbf99b215e3038749c6b31847cfc20 100644 (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;
                        }
index ad4152a202f2804ed435d464bb36669956565192..f28ef9418d1f1792050449858917da90a5a5d70d 100644 (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.