From eb806342b8b1acb7080d3ca2d093f8a740793318 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Sat, 24 Mar 2018 00:39:58 -0700 Subject: [PATCH] Fix bug with overlapping timestamp declarations --- lib/session.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/session.coffee b/lib/session.coffee index 412b997..e5e37c8 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -1163,8 +1163,8 @@ processDeclarations = (sessionContext, allDeclareTimestamps, allDeclareAttribute if currentPath.wildcard == 0 if attrs = allDeclareAttributeTimestamps.get(path) if declareAttributeTimestamps - delcareAttributeTimestamps = Object.assign({}, declareAttributeTimestamps) - declareAttributeTimestamps[k] = Math.max(v, attrs[k] or 0) for k, v of attrs + declareAttributeTimestamps = Object.assign({}, declareAttributeTimestamps) + declareAttributeTimestamps[k] = Math.max(v, declareAttributeTimestamps[k] or 0) for k, v of attrs else declareAttributeTimestamps = attrs