summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorNathan Dinsmore <nathan@users.noreply.github.com>2015-06-17 20:46:54 -0400
committerNathan Dinsmore <nathan@users.noreply.github.com>2015-06-17 20:46:54 -0400
commit6a82960cf77f9eac16c9a1ce13f360d80469799d (patch)
tree92f19e7db55f03b9215081e694972cb401818278 /objects.js
parentd5761b074d0c98c047e7319cf2243a39c7a6a303 (diff)
downloadsnap-6a82960cf77f9eac16c9a1ce13f360d80469799d.tar.gz
snap-6a82960cf77f9eac16c9a1ce13f360d80469799d.zip
Optimize moveBy and friends
This results in realtime speed for dragging where I used to get 10-15 fps before this change.
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index 8d11ff6..1e8060e 100644
--- a/objects.js
+++ b/objects.js
@@ -3290,7 +3290,7 @@ SpriteMorph.prototype.nestingBounds = function () {
// SpriteMorph motion primitives
-Morph.prototype.setPosition = function (aPoint, justMe) {
+SpriteMorph.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());