Skip to content

Commit 5fadd49

Browse files
committed
Merge pull request #16 from codejet/patch-1
fix typos in readme
2 parents 69dbe3c + 79157a0 commit 5fadd49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Now elementA will be what it was like before applying the diff.
5454

5555
#### Remote changes
5656

57-
If you need to movediffs from one machine to anotherone, you will likely want to send the diffs through a websocket connection or as part of a form submit. In both cases you need to convert the diff to a json string.
57+
If you need to move diffs from one machine to another one, you will likely want to send the diffs through a websocket connection or as part of a form submit. In both cases you need to convert the diff to a json string.
5858

5959
To convert a diff to a json string which you can send over the network, do:
6060
```
@@ -80,7 +80,7 @@ if (result) {
8080
```
8181
#### Advanced merging of text node changes
8282

83-
diffDOM does not include merging for changes to text nodes. However, it includes hooks so that you can add more advanced handeling. Simple overwrite the textDiff function of the diffDOM instance. The functions TEXTDIFF and TEXTPATCH need to be defined in the code:
83+
diffDOM does not include merging for changes to text nodes. However, it includes hooks so that you can add more advanced handling. Simple overwrite the textDiff function of the diffDOM instance. The functions TEXTDIFF and TEXTPATCH need to be defined in the code:
8484
```
8585
dd = new diffDOM();
8686
@@ -99,7 +99,7 @@ dd.textDiff = function (node, currentValue, expectedValue, newValue) {
9999

100100
#### Debugging
101101

102-
For debugging you might want to set a max number of diff changes between two elements before diffDOM gives up. To allow for a maximum of 500 differences between elements when diffing, initiatilize diffDOM like this:
102+
For debugging you might want to set a max number of diff changes between two elements before diffDOM gives up. To allow for a maximum of 500 differences between elements when diffing, initialize diffDOM like this:
103103
```
104104
dd = new diffDOM(true, 500);
105105
```

0 commit comments

Comments
 (0)