fix: json serialize lists_getIndex with json extraState (#6136) (#6170)

* fix: json serialize lists_getIndex with json extraState (#6136)

* address review comments

* fix: move block tests to mocha/block folder
This commit is contained in:
gregdyke
2022-05-25 03:12:03 +01:00
committed by GitHub
parent d21db8ac9a
commit 0afff23d49
9 changed files with 147 additions and 8 deletions

View File

@@ -441,6 +441,9 @@ const loadAttributes = function(block, state) {
/**
* Applies any extra state information available on the state object to the
* block.
* For json serialised blocks with a loadExtraState method, if the extraState
* is an xml mutation (not an object), domToMutation will be called instead for
* backward compatibility.
* @param {!Block} block The block to set the extra state of.
* @param {!State} state The state object to reference.
*/