Skip to content

Commit 1be4d62

Browse files
author
Arian Stolwijk
committed
Merge pull request #2765 from stweil/master
Fix typos in comments and strings
2 parents 2f0aee5 + a3f93ca commit 1be4d62

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

Docs/Class/Class.Thenable.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ It makes a Class "thenable" (see [Promises/A+][]), which means you can call its
5454
Class.Thenable Method: then {#Class.Thenable:then}
5555
--------------------------------------------------
5656

57-
Registers callbacks to receive the class's eventual value or the reason why it cannot be succesfully resolved.
57+
Registers callbacks to receive the class's eventual value or the reason why it cannot be successfully resolved.
5858

5959
### Syntax:
6060

6161
myClass.then(onFulfilled, onRejected);
6262

6363
### Arguments:
6464

65-
1. onFulfilled - (*function*, optional) Function to execute when the value is succesfully resolved.
66-
2. onRejected - (*function*, optional) Function to execute when the value cannot be succesfully resolved.
65+
1. onFulfilled - (*function*, optional) Function to execute when the value is successfully resolved.
66+
2. onRejected - (*function*, optional) Function to execute when the value cannot be successfully resolved.
6767

6868
### Returns:
6969

@@ -78,15 +78,15 @@ Registers callbacks to receive the class's eventual value or the reason why it c
7878
Class.Thenable Method: catch {#Class.Thenable:catch}
7979
----------------------------------------------------
8080

81-
Registers a callback to receive the reason why an eventual value cannot be succesfully resolved.
81+
Registers a callback to receive the reason why an eventual value cannot be successfully resolved.
8282

8383
### Syntax:
8484

8585
myClass.catch(onRejected);
8686

8787
### Arguments:
8888

89-
1. onRejected - (*function*, optional) Function to execute when the value cannot be succesfully resolved.
89+
1. onRejected - (*function*, optional) Function to execute when the value cannot be successfully resolved.
9090

9191
### Returns:
9292

@@ -136,7 +136,7 @@ Function to make a `Thenable` rejected, that is to say it will not receive an ev
136136

137137
### Arguments:
138138

139-
1. reason - (*mixed*, optional) The reason the `Thenable` will not be succesfully resolved, often an `Error` instance.
139+
1. reason - (*mixed*, optional) The reason the `Thenable` will not be successfully resolved, often an `Error` instance.
140140

141141
### Returns:
142142

@@ -147,7 +147,7 @@ Function to make a `Thenable` rejected, that is to say it will not receive an ev
147147
var MyClass = new Class({
148148
Implements: Class.Thenable,
149149
initialize: function(){
150-
this.reject(new Error('Cannot be succesfully resolved.'));
150+
this.reject(new Error('Cannot be successfully resolved.'));
151151
}
152152
});
153153

Docs/Class/Class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Useful when implementing a default set of properties in multiple Classes. The Im
7272
var Cat = new Class({
7373
Extends: Animal,
7474
initialize: function(name, age){
75-
this.parent(age); // calls initalize method of Animal class
75+
this.parent(age); // calls initialize method of Animal class
7676
this.name = name;
7777
}
7878
});

Docs/Element/Element.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ Tests the Element to see if it has the passed in className.
952952
Element Method: addClass {#Element:addClass}
953953
--------------------------------------------
954954

955-
Adds the passed in class to the Element, if the Element doesnt already have it.
955+
Adds the passed in class to the Element, if the Element doesn't already have it.
956956

957957
### Syntax:
958958

@@ -1096,7 +1096,7 @@ As [Element:getPrevious][], but tries to find the nextSibling (excluding text no
10961096

10971097
### Arguments:
10981098

1099-
1. match - (*string*, optional): A comma seperated list of tag names to match the found element(s) with. A full CSS selector can be passed.
1099+
1. match - (*string*, optional): A comma separated list of tag names to match the found element(s) with. A full CSS selector can be passed.
11001100

11011101
### Returns:
11021102

Docs/Types/Function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Tries to execute a number of functions. Returns immediately the return value of
6565
var result = Function.attempt(function(){
6666
return some.made.up.object;
6767
}, function(){
68-
return jibberish.that.doesnt.exists;
68+
return jibberish.that.does.not.exist;
6969
}, function(){
7070
return false;
7171
});

Grunt/plugins/karma/syn/lib/syn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ extend(syn, {
25582558
prevents = autoPrevent ? -1 : 0;
25592559

25602560
//automatically prevents the default behavior for this event
2561-
//this is to protect agianst nasty browser freezing bug in safari
2561+
//this is to protect against nasty browser freezing bug in safari
25622562
if (autoPrevent) {
25632563
bind(element, type, function ontype(ev) {
25642564
ev.preventDefault();

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ b. __To fix a bug:__
2929
6. Create Pull Request, and send Pull Request.
3030

3131

32-
__Do try to contibute!__ This is a community project.
32+
__Do try to contribute!__ This is a community project.
3333

3434

3535
## Building & Testing

Source/Element/Element.Dimensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function getCompatElement(element){
283283
})();
284284

285285
//aliases
286-
Element.alias({position: 'setPosition'}); //compatability
286+
Element.alias({position: 'setPosition'}); //compatibility
287287

288288
[Window, Document, Element].invoke('implement', {
289289

Source/Slick/Slick.Finder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ local.setDocument = function(document){
7878
var testRoot = document.body || document.getElementsByTagName('body')[0] || root;
7979
testRoot.appendChild(testNode);
8080

81-
// on non-HTML documents innerHTML and getElementsById doesnt work properly
81+
// on non-HTML documents innerHTML and getElementsById don't work properly
8282
try {
8383
testNode.innerHTML = '<a id="'+id+'"></a>';
8484
features.isHTMLDocument = !!document.getElementById(id);
@@ -117,7 +117,7 @@ local.setDocument = function(document){
117117
cachedGetElementsByClassName = (testNode.getElementsByClassName('b').length != 2);
118118
} catch (e){};
119119

120-
// Opera 9.6 getElementsByClassName doesnt detects the class if its not the first one
120+
// Opera 9.6 getElementsByClassName doesn't detects the class if its not the first one
121121
try {
122122
testNode.innerHTML = '<a class="a"></a><a class="f b a"></a>';
123123
brokenSecondClassNameGEBCN = (testNode.getElementsByClassName('a').length != 2);
@@ -134,13 +134,13 @@ local.setDocument = function(document){
134134
features.starSelectsClosedQSA = (selected && !!selected.length && selected[0].nodeName.charAt(0) == '/');
135135
} catch (e){}
136136

137-
// Safari 3.2 querySelectorAll doesnt work with mixedcase on quirksmode
137+
// Safari 3.2 querySelectorAll doesn't work with mixedcase on quirksmode
138138
try {
139139
testNode.innerHTML = '<a class="MiX"></a>';
140140
features.brokenMixedCaseQSA = !testNode.querySelectorAll('.MiX').length;
141141
} catch (e){}
142142

143-
// Webkit and Opera dont return selected options on querySelectorAll
143+
// Webkit and Opera don't return selected options on querySelectorAll
144144
try {
145145
testNode.innerHTML = '<select><option selected="selected">a</option></select>';
146146
features.brokenCheckedQSA = (testNode.querySelectorAll(':checked').length == 0);

Specs/Types/String.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('String Method', function(){
7676
describe('String.test', function(){
7777

7878
it('should return true if the test matches the string otherwise false', function(){
79-
expect('i like teh cookies'.test('cookies')).to.equal(true);
79+
expect('i like the cookies'.test('cookies')).to.equal(true);
8080
expect('i like cookies'.test('ke coo')).to.equal(true);
8181
expect('I LIKE COOKIES'.test('cookie', 'i')).to.equal(true);
8282
expect('i like cookies'.test('cookiez')).to.equal(false);

prepare-release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if [ -n "$DIST" ]; then
8787
echo "Building '$DIST_DIR' files." >&2
8888
sh -c "cd '$DIR' && $DIST $DIST_ARGS" || moo "Error building '$DIST_DIR' files."
8989
sh -c "cd '$DIR' && git add -f '$DIR/$DIST_DIR'" || moo "Error adding '$DIST_DIR' files to repository."
90-
echo "Succesfully built '$DIST_DIR' files." >&2
90+
echo "Successfully built '$DIST_DIR' files." >&2
9191
fi
9292

9393
# Make the new release final.

0 commit comments

Comments
 (0)