From d06d59e342d7b9a719c731dceb5c4ad93d03bd53 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Thu, 2 Mar 2017 12:56:25 -0800 Subject: [PATCH] Fix regression bug in sandbox --- lib/sandbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sandbox.js b/lib/sandbox.js index 2747a3c..5dbc0ce 100644 --- a/lib/sandbox.js +++ b/lib/sandbox.js @@ -176,7 +176,7 @@ function declare(path, timestamps, values) { function clear(path, timestamp, attributes) { state.uncommitted = true; - if (state.revision === maxRevision) + if (state.revision === state.maxRevision) state.clear.push([common.parsePath(path), timestamp, attributes]); }