Modifying default.js behavior to stop the interval function when umbraBehaviorFinished returns true

We should do this in all behaviors ultimately to stop the behavior script upon completion
This commit is contained in:
Adam Miller 2016-05-05 01:03:57 +00:00
parent 61cec15fff
commit 6e4e28d2df

View File

@ -138,6 +138,7 @@ var umbraBehaviorFinished = function() {
if (umbraState.idleSince != null) {
var idleTimeMs = Date.now() - umbraState.idleSince;
if (idleTimeMs / 1000 > UMBRA_USER_ACTION_IDLE_TIMEOUT_SEC) {
clearInterval(umbraIntervalId)
return true;
}
}