From 37d82524f9c57d7d76ed56837ac0bda949f604d1 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 11 Jul 2014 12:54:02 +0200 Subject: fixed #506, thanks @haritop! thanks @haritop, for both the report and for also providing the fix for it!! --- threads.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 104e129..50abf78 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-July-08'; +modules.threads = '2014-July-11'; var ThreadManager; var Process; @@ -2235,14 +2235,14 @@ Process.prototype.getObjectsNamed = function (name, thisObj, stageObj) { }; Process.prototype.doFaceTowards = function (name) { - var thisObj = this.homeContext.receiver, + var thisObj = this.blockReceiver(), thatObj; if (thisObj) { if (this.inputOption(name) === 'mouse-pointer') { thisObj.faceToXY(this.reportMouseX(), this.reportMouseY()); } else { - thatObj = this.getOtherObject(name, thisObj); + thatObj = this.getOtherObject(name, this.homeContext.receiver); if (thatObj) { thisObj.faceToXY( thatObj.xPosition(), @@ -2254,14 +2254,14 @@ Process.prototype.doFaceTowards = function (name) { }; Process.prototype.doGotoObject = function (name) { - var thisObj = this.homeContext.receiver, + var thisObj = this.blockReceiver(), thatObj; if (thisObj) { if (this.inputOption(name) === 'mouse-pointer') { thisObj.gotoXY(this.reportMouseX(), this.reportMouseY()); } else { - thatObj = this.getOtherObject(name, thisObj); + thatObj = this.getOtherObject(name, this.homeContext.receiver); if (thatObj) { thisObj.gotoXY( thatObj.xPosition(), -- cgit v1.3.1