Skip to content

Commit

Permalink
Merge pull request #2765 from stweil/master
Browse files Browse the repository at this point in the history
Fix typos in comments and strings
  • Loading branch information
Arian Stolwijk committed Mar 17, 2016
2 parents 2f0aee5 + a3f93ca commit 1be4d62
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions Docs/Class/Class.Thenable.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ It makes a Class "thenable" (see [Promises/A+][]), which means you can call its
Class.Thenable Method: then {#Class.Thenable:then}
--------------------------------------------------

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

### Syntax:

myClass.then(onFulfilled, onRejected);

### Arguments:

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

### Returns:

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

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

### Syntax:

myClass.catch(onRejected);

### Arguments:

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

### Returns:

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

### Arguments:

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

### Returns:

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

Expand Down
2 changes: 1 addition & 1 deletion Docs/Class/Class.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Useful when implementing a default set of properties in multiple Classes. The Im
var Cat = new Class({
Extends: Animal,
initialize: function(name, age){
this.parent(age); // calls initalize method of Animal class
this.parent(age); // calls initialize method of Animal class
this.name = name;
}
});
Expand Down
4 changes: 2 additions & 2 deletions Docs/Element/Element.md
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ Tests the Element to see if it has the passed in className.
Element Method: addClass {#Element:addClass}
--------------------------------------------

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

### Syntax:

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

### Arguments:

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

### Returns:

Expand Down
2 changes: 1 addition & 1 deletion Docs/Types/Function.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Tries to execute a number of functions. Returns immediately the return value of
var result = Function.attempt(function(){
return some.made.up.object;
}, function(){
return jibberish.that.doesnt.exists;
return jibberish.that.does.not.exist;
}, function(){
return false;
});
Expand Down
2 changes: 1 addition & 1 deletion Grunt/plugins/karma/syn/lib/syn.js
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,7 @@ extend(syn, {
prevents = autoPrevent ? -1 : 0;

//automatically prevents the default behavior for this event
//this is to protect agianst nasty browser freezing bug in safari
//this is to protect against nasty browser freezing bug in safari
if (autoPrevent) {
bind(element, type, function ontype(ev) {
ev.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ b. __To fix a bug:__
6. Create Pull Request, and send Pull Request.


__Do try to contibute!__ This is a community project.
__Do try to contribute!__ This is a community project.


## Building & Testing
Expand Down
2 changes: 1 addition & 1 deletion Source/Element/Element.Dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function getCompatElement(element){
})();

//aliases
Element.alias({position: 'setPosition'}); //compatability
Element.alias({position: 'setPosition'}); //compatibility

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

Expand Down
8 changes: 4 additions & 4 deletions Source/Slick/Slick.Finder.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ local.setDocument = function(document){
var testRoot = document.body || document.getElementsByTagName('body')[0] || root;
testRoot.appendChild(testNode);

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

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

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

// Webkit and Opera dont return selected options on querySelectorAll
// Webkit and Opera don't return selected options on querySelectorAll
try {
testNode.innerHTML = '<select><option selected="selected">a</option></select>';
features.brokenCheckedQSA = (testNode.querySelectorAll(':checked').length == 0);
Expand Down
2 changes: 1 addition & 1 deletion Specs/Types/String.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('String Method', function(){
describe('String.test', function(){

it('should return true if the test matches the string otherwise false', function(){
expect('i like teh cookies'.test('cookies')).to.equal(true);
expect('i like the cookies'.test('cookies')).to.equal(true);
expect('i like cookies'.test('ke coo')).to.equal(true);
expect('I LIKE COOKIES'.test('cookie', 'i')).to.equal(true);
expect('i like cookies'.test('cookiez')).to.equal(false);
Expand Down
2 changes: 1 addition & 1 deletion prepare-release
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if [ -n "$DIST" ]; then
echo "Building '$DIST_DIR' files." >&2
sh -c "cd '$DIR' && $DIST $DIST_ARGS" || moo "Error building '$DIST_DIR' files."
sh -c "cd '$DIR' && git add -f '$DIR/$DIST_DIR'" || moo "Error adding '$DIST_DIR' files to repository."
echo "Succesfully built '$DIST_DIR' files." >&2
echo "Successfully built '$DIST_DIR' files." >&2
fi

# Make the new release final.
Expand Down

0 comments on commit 1be4d62

Please sign in to comment.