From 3019933cb6356fc5307afe5b4b62a9d64c18240f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 11 Dec 2013 15:45:35 +0100 Subject: [PATCH] Rename reverseInstructions_ function to reverseHitDetectionInstructions_ --- src/ol/render/canvas/canvasreplay.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ol/render/canvas/canvasreplay.js b/src/ol/render/canvas/canvasreplay.js index 843b4050f9..24229b0f81 100644 --- a/src/ol/render/canvas/canvasreplay.js +++ b/src/ol/render/canvas/canvasreplay.js @@ -298,7 +298,8 @@ ol.render.canvas.Replay.prototype.replayBackward = /** * @private */ -ol.render.canvas.Replay.prototype.reverseInstructions_ = function() { +ol.render.canvas.Replay.prototype.reverseHitDetectionInstructions_ = + function() { var hitDetectionInstructions = this.hitDetectionInstructions; // step 1 - reverse array hitDetectionInstructions.reverse(); @@ -548,7 +549,7 @@ ol.render.canvas.ImageReplay.prototype.drawMultiPointGeometry = * @inheritDoc */ ol.render.canvas.ImageReplay.prototype.finish = function() { - this.reverseInstructions_(); + this.reverseHitDetectionInstructions_(); // FIXME this doesn't really protect us against further calls to draw*Geometry this.anchorX_ = undefined; this.anchorY_ = undefined; @@ -750,7 +751,7 @@ ol.render.canvas.LineStringReplay.prototype.finish = function() { if (state.lastStroke != this.coordinates.length) { this.instructions.push([ol.render.canvas.Instruction.STROKE]); } - this.reverseInstructions_(); + this.reverseHitDetectionInstructions_(); this.state_ = null; }; @@ -954,7 +955,7 @@ ol.render.canvas.PolygonReplay.prototype.drawMultiPolygonGeometry = */ ol.render.canvas.PolygonReplay.prototype.finish = function() { goog.asserts.assert(!goog.isNull(this.state_)); - this.reverseInstructions_(); + this.reverseHitDetectionInstructions_(); this.state_ = null; };