diff --git a/HISTORY.md b/HISTORY.md index d71f8bee..025410f8 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -88,6 +88,7 @@ ### 2019-06-04 * Objects, Lists: fixed #682 +* Lists, Tables: fixed table watcher cell updates for costumes (save / load) ### 2019-06-03 * Threads: fixed #2249, predicates inside generic WHEN hats should be able to pass upvars diff --git a/snap.html b/snap.html index ce853863..ff746b87 100755 --- a/snap.html +++ b/snap.html @@ -11,9 +11,9 @@ - + - + diff --git a/src/lists.js b/src/lists.js index 8cfdaaa6..6a6ad803 100644 --- a/src/lists.js +++ b/src/lists.js @@ -321,7 +321,13 @@ List.prototype.version = function (startRow, rows) { i; for (i = startRow; i <= l; i += 1) { r = this.at(i); - v = Math.max(v, r.lastChanged ? r.lastChanged : 0); + if (r instanceof Costume) { + v = Math.max(v, r.version); + } else if (r instanceof List) { + v = Math.max(v, r.version(1, r.length())); + } else { + v = Math.max(v, r.lastChanged ? r.lastChanged : 0); + } } return v; }; diff --git a/src/tables.js b/src/tables.js index ce88155f..2ef5dc1c 100644 --- a/src/tables.js +++ b/src/tables.js @@ -70,7 +70,7 @@ SpriteMorph, Context, Costume, ArgMorph, BlockEditorMorph, SymbolMorph, SyntaxElementMorph, MenuMorph, SpriteBubbleMorph, SpeechBubbleMorph, Sound, CellMorph, ListWatcherMorph, isNil, BoxMorph, Variable, isSnapObject*/ -modules.tables = '2019-February-07'; +modules.tables = '2019-June-04'; var Table; var TableCellMorph;