From 5134f8419c72efa7fe34e2b70a381a9a01c38dac Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Tue, 6 Sep 2016 03:21:32 -0700 Subject: [PATCH] Use relative depth in refresh task --- lib/session.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/session.coffee b/lib/session.coffee index 0c791f5..c6b4a4a 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -247,7 +247,7 @@ runProvisions = (sessionData, provisions, startRevision, endRevision, callback) when 'refresh' path = common.parsePath(provision[1]).slice() l = path.length - path.length = 10 + path.length += 10 path.fill('*', l) t = provision[2] t += sessionData.timestamp if t <= 0 @@ -272,7 +272,7 @@ runProvisions = (sessionData, provisions, startRevision, endRevision, callback) when 'refreshObject' path = common.parsePath(provision[3]).slice() l = path.length - path.length = 10 + path.length += 10 path.fill('*', l) for i in [l...path.length] by 1 p = common.addPathMeta(path.slice(0, i))