Skip to content

Commit ba82ad5

Browse files
committed
Update README.md
1 parent 69e6161 commit ba82ad5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,22 @@ buffer.get('firstName'); // => 'stefan'
2323
buffer.set('firstName', 'Kris');
2424

2525
buffer.get('firstName'); // => 'Kris'
26-
buffer.set('firstName.content', 'Stefan');
26+
buffer.get('firstName.content'); // => 'stefan'
2727

2828
buffer.applyBufferedChanges();
2929

30+
buffer.get('firstName'); // => 'Kris'
31+
buffer.get('firstName.content'); // => 'Kris'
32+
33+
34+
buffer.set('firstName', 'Luke');
35+
buffer.get('firstName'); // => 'Luke'
36+
buffer.get('firstName.content'); // => 'Kris'
37+
38+
buffer.discardBufferedChanges();
39+
40+
buffer.get('firstName'); // => 'Kris'
41+
buffer.get('firstName.content'); // => 'Kris'
3042
```
3143

3244
Or you can grab the mixin directly

0 commit comments

Comments
 (0)