Fix bug in traverse function in device
This commit is contained in:
1 parent
48d9adbaff
commit
3ebab84e56
1 file changed
+1
-1
+1
-1
@@ -270,7 +270,7 @@ traverse = (deviceData, pattern, revision, callback) ->
|
|||||||
|
|
||||||
# Collect current properties
|
# Collect current properties
|
||||||
if ref[0]?[0]?
|
if ref[0]?[0]?
|
||||||
for i in [revisionThreshold...Math.min(revision, ref[0][0].length)] by 1 when (rev = ref[0][0][i])?
|
for i in [revisionThreshold...Math.min(revision + 1, ref[0][0].length)] by 1 when (rev = ref[0][0][i])?
|
||||||
for j in [0...rev.length] by 2 when rev[j]?
|
for j in [0...rev.length] by 2 when rev[j]?
|
||||||
if rev[j] >= timestampThreshold
|
if rev[j] >= timestampThreshold
|
||||||
current[j] = rev[j]
|
current[j] = rev[j]
|
||||||
|
|||||||
Reference in new issue
Block a user