From 39158c9d48831303a65b0d604b03cb4d27f2d039 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Wed, 15 Feb 2017 09:40:10 -0500 Subject: [PATCH] Revert "Feature fencing" --- src/sprites/rendered-target.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index 3e1e06e12..9bbc20b23 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -167,20 +167,15 @@ RenderedTarget.prototype.setXY = function (x, y) { } var oldX = this.x; var oldY = this.y; + this.x = x; + this.y = y; if (this.renderer) { - var position = this.renderer.getFencedPositionOfDrawable(this.drawableID, [x, y]); - this.x = position.x; - this.y = position.y; - this.renderer.updateDrawableProperties(this.drawableID, { - position: position + position: [this.x, this.y] }); if (this.visible) { this.runtime.requestRedraw(); } - } else { - this.x = x; - this.y = y; } this.emit(RenderedTarget.EVENT_TARGET_MOVED, this, oldX, oldY); this.runtime.spriteInfoReport(this);