Skip to content

Commit 44d976a

Browse files
committed
repo rename
1 parent 7ef406d commit 44d976a

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/arrays.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ At first, you might be surprised by this...
2121
``` javascript
2222
var delta = jsondiffpatch.diff({ name: 'tito' }, { name: 'tito' });
2323

24-
assertSame(delta, {
25-
_0: [{ name: 'tito' }, 0, 0],
24+
assertSame(delta, {
25+
_0: [{ name: 'tito' }, 0, 0],
2626
0: [{ name: 'tito' }]
2727
});
28-
// reads as: remove { name: 'tito' } at 0,
28+
// reads as: remove { name: 'tito' } at 0,
2929
// insert { name: 'tito' } at 0
3030
```
3131

@@ -85,4 +85,4 @@ For more details check [delta format documentation](deltas.md)
8585
8686
#### Html
8787
88-
On html you will see moves as fancy curved arrows (check [Live Demo](http://benjamine.github.com/JsonDiffPatch/demo/index.html) ), these are implemented using SVG elements and an embedded script tag, they will only show up [if your browser supports SVG](http://caniuse.com/svg)
88+
On html you will see moves as fancy curved arrows (check [Live Demo](http://benjamine.github.com/jsondiffpatch/demo/index.html) ), these are implemented using SVG elements and an embedded script tag, they will only show up [if your browser supports SVG](http://caniuse.com/svg)

docs/deltas.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This format was created with a balance between readability and low footprint in
99
- to represent changed parts, arrays and magic numbers are used to keep a low footprint (ie. you won't see verbosity like ```"type": "added")
1010
- keep it pure JSON serializable
1111

12-
A great way to understand this format is using the "Annotated JSON" option in the [Live Demo](http://benjamine.github.com/JsonDiffPatch/demo/index.html), and try the different left/right examples, or edit left/right JSON to see the annotated delta update as your type.
12+
A great way to understand this format is using the "Annotated JSON" option in the [Live Demo](http://benjamine.github.com/jsondiffpatch/demo/index.html), and try the different left/right examples, or edit left/right JSON to see the annotated delta update as your type.
1313

1414
Here's a complete reference of this format.
1515

@@ -101,8 +101,8 @@ But if both strings are long enough, [a text diffing algorythm](https://code.goo
101101

102102
You can modify the minimum length with:
103103
``` javascript
104-
var customDiffPatch = jsondiffpatch.create({
105-
textDiff: {
104+
var customDiffPatch = jsondiffpatch.create({
105+
textDiff: {
106106
minLength: 60 // default value
107107
}
108108
});

docs/formatters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Formatters
22
==========
33

4-
Some formatters are included that let you convert a JSON delta into other formats, you can see some of these used in the [Live Demo](http://benjamine.github.com/JsonDiffPatch/demo/index.html)
4+
Some formatters are included that let you convert a JSON delta into other formats, you can see some of these used in the [Live Demo](http://benjamine.github.com/jsondiffpatch/demo/index.html)
55

66
Html
77
----

docs/plugins.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Plugin a new diff filter
2626

2727
var diffpatcher = jsondiffpatch.create();
2828
var NUMERIC_DIFFERENCE = -8;
29-
29+
3030
var numericDiffFilter = function(context) {
3131
if (typeof context.left === 'number' && typeof context.right === 'number') {
3232
context.setResult([0, context.right - context.left, NUMERIC_DIFFERENCE]).exit();
@@ -64,13 +64,13 @@ Let's make the corresponding patch filter that will handle the new delta type
6464
// try it
6565
var right = diffpatcher.patch({ population: 400 }, delta);
6666
assertSame(right, { population: 403 });
67-
67+
6868
// patch twice!
6969
diffpatcher.patch(right, delta);
7070
assertSame(right, { population: 406 });
7171

7272
/*
73-
To complete the plugin, let's add the reverse filter, so numeric deltas can be reversed
73+
To complete the plugin, let's add the reverse filter, so numeric deltas can be reversed
7474
(this is needed for unpatching too)
7575
*/
7676

@@ -86,7 +86,7 @@ To complete the plugin, let's add the reverse filter, so numeric deltas can be r
8686
// try it
8787
var reverseDelta = diffpatcher.reverse(delta);
8888
assertSame(reverseDelta, [0, -3, NUMERIC_DIFFERENCE]);
89-
89+
9090
// unpatch twice!
9191
diffpatcher.unpatch(right, delta);
9292
assertSame(right, { population: 403 });

0 commit comments

Comments
 (0)