Skip to content

Commit

Permalink
Reset scratch index for Expression.evaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Sep 28, 2016
1 parent 9d2838e commit 096b15b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Scene/Expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit 096b15b

Please sign in to comment.