From 2a122f057cf824d9a961291f2bb82092a3f3ac62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 21 Nov 2013 16:03:11 +0100 Subject: [PATCH] Rename currentFillColor to currentFillStyle --- src/ol/render/canvas/canvasreplay.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ol/render/canvas/canvasreplay.js b/src/ol/render/canvas/canvasreplay.js index 054dc2036e..9e85b393e0 100644 --- a/src/ol/render/canvas/canvasreplay.js +++ b/src/ol/render/canvas/canvasreplay.js @@ -605,7 +605,7 @@ ol.render.canvas.PolygonReplay = function() { /** * @private - * @type {{currentFillColor: (string|undefined), + * @type {{currentFillStyle: (string|undefined), * currentStrokeStyle: (string|undefined), * currentLineWidth: (number|undefined), * fillStyle: (string|undefined), @@ -613,7 +613,7 @@ ol.render.canvas.PolygonReplay = function() { * lineWidth: (number|undefined)}|null} */ this.state_ = { - currentFillColor: undefined, + currentFillStyle: undefined, currentStrokeStyle: undefined, currentLineWidth: undefined, fillStyle: undefined, @@ -754,10 +754,10 @@ ol.render.canvas.PolygonReplay.prototype.setFillStrokeStyles_ = function() { var fillStyle = state.fillStyle; var strokeStyle = state.strokeStyle; var lineWidth = state.lineWidth; - if (goog.isDef(fillStyle) && state.currentFillColor != fillStyle) { + if (goog.isDef(fillStyle) && state.currentFillStyle != fillStyle) { this.instructions.push( [ol.render.canvas.Instruction.SET_FILL_STYLE, fillStyle]); - state.currentFillColor = state.fillStyle; + state.currentFillStyle = state.fillStyle; } if (goog.isDef(strokeStyle)) { goog.asserts.assert(goog.isDef(lineWidth));