summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-12-07 11:49:04 +0100
committerGubolin <gubolin@fantasymail.de>2014-12-07 11:49:04 +0100
commit8216c22b6cc38f16552f9db30f91fdb9cc915d6a (patch)
tree3ed409a8a29ad191966f36c7d8a309375fc4f94b /objects.js
parentead2355cac9d06c3f6d774e6119040fe6109192e (diff)
parente815f27376f2798bdb75850c5bc5bd88dec2cdcc (diff)
downloadsnap-8216c22b6cc38f16552f9db30f91fdb9cc915d6a.tar.gz
snap-8216c22b6cc38f16552f9db30f91fdb9cc915d6a.zip
Merge branch 'issue_209' into development
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/objects.js b/objects.js
index 14a3316..01f27ec 100644
--- a/objects.js
+++ b/objects.js
@@ -3272,9 +3272,7 @@ Morph.prototype.setPosition = function (aPoint, justMe) {
// override the inherited default to make sure my parts follow
// unless it's justMe
var delta = aPoint.subtract(this.topLeft());
- if ((delta.x !== 0) || (delta.y !== 0)) {
- this.moveBy(delta, justMe);
- }
+ this.moveBy(delta, justMe);
};
SpriteMorph.prototype.forward = function (steps) {