1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +02:00

fix to default document.nodes to an immutable list, closes #460

This commit is contained in:
Ian Storm Taylor
2016-11-29 11:30:52 -08:00
parent 0dd3dee160
commit 2c7be1dcf0

View File

@@ -13,7 +13,7 @@ import './inline'
import Block from './block' import Block from './block'
import Node from './node' import Node from './node'
import generateKey from '../utils/generate-key' import generateKey from '../utils/generate-key'
import { OrderedMap, Record } from 'immutable' import { List, Record } from 'immutable'
/** /**
* Default properties. * Default properties.
@@ -23,7 +23,7 @@ import { OrderedMap, Record } from 'immutable'
const DEFAULTS = { const DEFAULTS = {
key: null, key: null,
nodes: new OrderedMap(), nodes: new List(),
} }
/** /**