Skip to content

Commit ecf11db

Browse files
author
David Brady
committed
Style and spelling fixes
1 parent d4c347b commit ecf11db

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

chapters/objects/cloning.textile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ chapter: Objects
66

77
h2. Problem
88

9-
You want to clone an object with all its sub-objects
9+
You want to clone an object with all its sub-objects.
1010

1111
h2. Solution
1212

@@ -36,16 +36,13 @@ console.log x.foo isnt y.foo, x.foo, y.foo
3636

3737
h2. Discussion
3838

39-
The difference between copying an object through assignement and through this
40-
clone-function is how they handle references.
41-
The assignement only copies the object's reference, whereas the clone-function
42-
creates a complete new object by
39+
The difference between copying an object through assignment and through this clone-function is how they handle references. The assignment only copies the object's reference, whereas the clone-function creates a complete new object by
40+
4341
* creating a new object like the source object,
4442
* copying all attributes form the source object to the new object and
45-
* repeating these steps for all sub-objects by calling the clone-function
46-
recursively.
43+
* repeating these steps for all sub-objects by calling the clone-function recursively.
4744

48-
Example of an assignement copy:
45+
Example of an assignment copy:
4946
{% highlight coffeescript %}
5047
x =
5148
foo: 'bar'

css/default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pre {
4444

4545
p, header, section { margin-bottom: 22px; }
4646

47-
ul {
47+
ul.unstyled {
4848
list-style: none;
4949
}
5050

0 commit comments

Comments
 (0)