From 096b15bd88a6a46b717d38cd57759bff57db5fec Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Wed, 28 Sep 2016 11:22:42 -0400 Subject: [PATCH] Reset scratch index for Expression.evaluate --- Source/Scene/Expression.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Scene/Expression.js b/Source/Scene/Expression.js index 40c18c8a2e38..1867181bce2c 100644 --- a/Source/Scene/Expression.js +++ b/Source/Scene/Expression.js @@ -117,6 +117,7 @@ define([ * @returns {Boolean|Number|String|Color|RegExp} The result of evaluating the expression. */ Expression.prototype.evaluate = function(feature) { + scratchColorIndex = 0; return this._runtimeAst.evaluate(feature); };