Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixes spelling, grammar, format #123

Merged
merged 1 commit into from

2 participants

@sl4m

Just some subtle things I found as I read through the documentation. Great documentation btw!

@BonsaiDen
Owner

Hard to believe there are still this many errors in there, after all that time, so thanks for fixing another bunch of them :)

@BonsaiDen BonsaiDen merged commit 5008b85 into BonsaiDen:master
@sl4m

No problem! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 30, 2012
  1. @sl4m

    fixes spelling, grammar, format

    sl4m authored
This page is out of date. Refresh to see the latest.
View
2  doc/en/array/general.md
@@ -1,7 +1,7 @@
## Array Iteration and Properties
Although arrays in JavaScript are objects, there are no good reasons to use
-the [`for in loop`](#object.forinloop) in for iteration on them. In fact, there
+the [`for in`](#object.forinloop) loop. In fact, there
are a number of good reasons **against** the use of `for in` on arrays.
> **Note:** JavaScript arrays are **not** *associative arrays*. JavaScript only
View
4 doc/en/core/delete.md
@@ -51,10 +51,10 @@ In the example above `obj.x` and `obj.y` can be deleted because they have no
GLOBAL_OBJECT.a; // undefined
Here we use a trick to delete `a`. [`this`](#function.this) here refers
-to the Global object and we explicitly declare variable `a` as it's property
+to the Global object and we explicitly declare variable `a` as its property
which allows us to delete it.
-IE (at least 6-8) has some bugs, so code above doesn't work.
+IE (at least 6-8) has some bugs, so the code above doesn't work.
### Function arguments and built-ins
View
2  doc/en/function/general.md
@@ -2,7 +2,7 @@
Functions in JavaScript are first class objects. That means they can be
passed around like any other value. One common use of this feature is to pass
-an *anonymous function* as a callback to another, possibly asynchronous function.
+an *anonymous function* as a callback to another, possibly an asynchronous function.
### The `function` Declaration
View
4 doc/en/function/scopes.md
@@ -153,7 +153,7 @@ has been applied.
Without the knowledge about *hoisting*, the below code might seem to raise a
`ReferenceError`.
- // check whether SomeImportantThing has been initiliazed
+ // check whether SomeImportantThing has been initialized
if (!SomeImportantThing) {
var SomeImportantThing = {};
}
@@ -163,7 +163,7 @@ moved to the top of the *global scope*.
var SomeImportantThing;
- // other code might initiliaze SomeImportantThing here, or not
+ // other code might initialize SomeImportantThing here, or not
// make sure it's there
if (!SomeImportantThing) {
View
4 doc/en/object/general.md
@@ -28,7 +28,7 @@ literals act as objects too.
Objects in JavaScript can also be used as a [*Hashmap*][1]; they mainly consist
of named properties mapping to values.
-Using a object literal - `{}` notation - it is possible to create a
+Using an object literal - `{}` notation - it is possible to create a
plain object. This new object [inherits](#object.prototype) from `Object.prototype` and
has no [own properties](#object.hasownproperty) defined on it.
@@ -42,7 +42,7 @@ has no [own properties](#object.hasownproperty) defined on it.
The properties of an object can be accessed in two ways, via either the dot
notation or the square bracket notation.
- var foo = {name: 'Kitten'}
+ var foo = {name: 'kitten'}
foo.name; // kitten
foo['name']; // kitten
View
2  doc/en/object/hasownproperty.md
@@ -44,7 +44,7 @@ necessary to use an *external* `hasOwnProperty` in order to get correct results.
// Use another Object's hasOwnProperty and call it with 'this' set to foo
({}).hasOwnProperty.call(foo, 'bar'); // true
- // It's also possible use the hasOwnProperty property from the Object property for this purpuse
+ // It's also possible use the hasOwnProperty property from the Object property for this purpose
Object.prototype.hasOwnProperty.call(obj, 'bar'); // true
View
2  doc/en/other/timeouts.md
@@ -138,7 +138,7 @@ function that will get called by either of the timeout functions.
function foo(a, b, c) {}
// NEVER use this
- setTimeout('foo(1,2, 3)', 1000)
+ setTimeout('foo(1, 2, 3)', 1000)
// Instead use an anonymous function
setTimeout(function() {
Something went wrong with that request. Please try again.