Move tracking of edge activated hat values into target.

This commit is contained in:
Karishma Chadha 2018-12-12 12:05:55 -05:00
parent 19737d4e39
commit 6c4fb29523
4 changed files with 40 additions and 34 deletions
src/engine

View file

@ -63,9 +63,8 @@ const handleReport = function (resolvedValue, sequencer, thread, blockCached, la
// true and used to be false, or the stack was activated explicitly
// via stack click
if (!thread.stackClick) {
const oldEdgeValue = sequencer.runtime.updateEdgeActivatedValue(
const oldEdgeValue = thread.target.updateEdgeActivatedValue(
currentBlockId,
thread.target.id,
resolvedValue
);
const edgeWasActivated = !oldEdgeValue && resolvedValue;