Yomguithereal / baobab

JavaScript & TypeScript persistent and optionally immutable data tree with cursors.
MIT License
3.15k stars 117 forks source link

Fix incorrect cursor example in README #423

Closed marcin-mazurek closed 8 years ago

marcin-mazurek commented 8 years ago

Just a nitpick. The tree structure declared above is:

var tree = new Baobab({
  palette: {
    name: 'fancy',
    colors: ['blue', 'yellow', 'green'],
    currentColor: 1,
    items: [{id: 'one', value: 'Hey'}, {id: 'two', value: 'Ho'}]
  }
});
Yomguithereal commented 8 years ago

Thanks @marcin-mazurek!