|
|
@@ -926,7 +926,7 @@ export default class Position {
|
|
|
*/
|
|
|
static fromJSON( json, doc ) {
|
|
|
if ( json.root === '$graveyard' ) {
|
|
|
- const pos = new Position( doc.graveyard, Array.from( json.path ) );
|
|
|
+ const pos = new Position( doc.graveyard, json.path );
|
|
|
pos.stickiness = json.stickiness;
|
|
|
|
|
|
return pos;
|
|
|
@@ -945,7 +945,7 @@ export default class Position {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- const pos = new Position( doc.getRoot( json.root ), Array.from( json.path ) );
|
|
|
+ const pos = new Position( doc.getRoot( json.root ), json.path );
|
|
|
pos.stickiness = json.stickiness;
|
|
|
|
|
|
return pos;
|