Use relative depth in refresh task
This commit is contained in:
1 parent
b60682bf80
commit
5134f8419c
1 file changed
+2
-2
+2
-2
@@ -247,7 +247,7 @@ runProvisions = (sessionData, provisions, startRevision, endRevision, callback)
|
|||||||
when 'refresh'
|
when 'refresh'
|
||||||
path = common.parsePath(provision[1]).slice()
|
path = common.parsePath(provision[1]).slice()
|
||||||
l = path.length
|
l = path.length
|
||||||
path.length = 10
|
path.length += 10
|
||||||
path.fill('*', l)
|
path.fill('*', l)
|
||||||
t = provision[2]
|
t = provision[2]
|
||||||
t += sessionData.timestamp if t <= 0
|
t += sessionData.timestamp if t <= 0
|
||||||
@@ -272,7 +272,7 @@ runProvisions = (sessionData, provisions, startRevision, endRevision, callback)
|
|||||||
when 'refreshObject'
|
when 'refreshObject'
|
||||||
path = common.parsePath(provision[3]).slice()
|
path = common.parsePath(provision[3]).slice()
|
||||||
l = path.length
|
l = path.length
|
||||||
path.length = 10
|
path.length += 10
|
||||||
path.fill('*', l)
|
path.fill('*', l)
|
||||||
for i in [l...path.length] by 1
|
for i in [l...path.length] by 1
|
||||||
p = common.addPathMeta(path.slice(0, i))
|
p = common.addPathMeta(path.slice(0, i))
|
||||||
|
|||||||
Reference in new issue
Block a user