From aae44111e2d30d908b48f6711272efddb84e6b79 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Fri, 4 Dec 2015 06:49:23 +0000 Subject: [PATCH] Docs: Fix various spelling errors Closes gh-2761 --- build/release/dist.js | 2 +- src/deferred.js | 2 +- test/unit/ajax.js | 2 +- test/unit/animation.js | 2 +- test/unit/core.js | 2 +- test/unit/manipulation.js | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build/release/dist.js b/build/release/dist.js index 514d40739..fc12a1a00 100644 --- a/build/release/dist.js +++ b/build/release/dist.js @@ -73,7 +73,7 @@ module.exports = function( Release, files, complete ) { Release.exec( "git add .", "Error adding files." ); Release.exec( "git commit -m 'Release " + Release.newVersion + "'", - "Error commiting files." + "Error committing files." ); console.log(); diff --git a/src/deferred.js b/src/deferred.js index 6a1ef3b43..bc2ea8637 100644 --- a/src/deferred.js +++ b/src/deferred.js @@ -135,7 +135,7 @@ jQuery.extend( { // Handle all other returned values } else { - // Only substitue handlers pass on context + // Only substitute handlers pass on context // and multiple values (non-spec behavior) if ( handler !== Identity ) { that = undefined; diff --git a/test/unit/ajax.js b/test/unit/ajax.js index f468f44a8..3e00afd4e 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -364,7 +364,7 @@ QUnit.module( "ajax", { }, cache: false, beforeSend: function( xhr, settings ) { - // Remove the random number, but ensure the cashe-buster param is there + // Remove the random number, but ensure the cache-buster param is there var url = settings.url.replace( /\d+/, "" ); assert.equal( url, "data/name.html?abc&devo=hat&_=#brownies", "Make sure that the URL has its hash." ); return false; diff --git a/test/unit/animation.js b/test/unit/animation.js index 3b1479432..3c5e711d7 100644 --- a/test/unit/animation.js +++ b/test/unit/animation.js @@ -169,7 +169,7 @@ QUnit.test( "Animation.prefilter - prefilter return hooks", function( assert ) { ); assert.equal( TweenSpy.callCount, 0, "Returning something never creates tweens" ); - // Test overriden usage on queues: + // Test overridden usage on queues: prefilter.reset(); element = jQuery( "
" ) .css( "height", 50 ) diff --git a/test/unit/core.js b/test/unit/core.js index ee17b70b0..05f99156f 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -484,7 +484,7 @@ QUnit.test( "isNumeric", function( assert ) { assert.equal( t( true ), false, "Boolean true literal" ); assert.equal( t( false ), false, "Boolean false literal" ); assert.equal( t( "bcfed5.2" ), false, "Number with preceding non-numeric characters" ); - assert.equal( t( "7.2acdgs" ), false, "Number with trailling non-numeric characters" ); + assert.equal( t( "7.2acdgs" ), false, "Number with trailing non-numeric characters" ); assert.equal( t( undefined ), false, "Undefined value" ); assert.equal( t( null ), false, "Null value" ); assert.equal( t( NaN ), false, "NaN value" ); diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index f72000fc4..8242df79a 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -495,9 +495,9 @@ QUnit.test( "html(String) tag-hyphenated elements (Bug #1987)", function( assert } ); var j = jQuery( "text" ); - assert.ok( jQuery.nodeName( j[ 0 ], "TR-MULTIPLE-HYPHENS" ), "Tags with multiple hypens" ); - assert.ok( jQuery.nodeName( j.children()[ 0 ], "TD-WITH-HYPHEN" ), "Tags with multiple hypens" ); - assert.equal( j.children().text(), "text", "Tags with multiple hypens behave normally" ); + assert.ok( jQuery.nodeName( j[ 0 ], "TR-MULTIPLE-HYPHENS" ), "Tags with multiple hyphens" ); + assert.ok( jQuery.nodeName( j.children()[ 0 ], "TD-WITH-HYPHEN" ), "Tags with multiple hyphens" ); + assert.equal( j.children().text(), "text", "Tags with multiple hyphens behave normally" ); } ); QUnit.test( "Tag name processing respects the HTML Standard (gh-2005)", function( assert ) {