summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-07-11 12:54:02 +0200
committerjmoenig <jens@moenig.org>2014-07-11 12:54:02 +0200
commit37d82524f9c57d7d76ed56837ac0bda949f604d1 (patch)
tree94e38208d92aa8e9b1e763fe240c698e5f3e1663
parent900c7e068b69d9a4224f99934d9b92a0593a4a95 (diff)
downloadsnap-37d82524f9c57d7d76ed56837ac0bda949f604d1.tar.gz
snap-37d82524f9c57d7d76ed56837ac0bda949f604d1.zip
fixed #506, thanks @haritop!
thanks @haritop, for both the report and for also providing the fix for it!!
-rwxr-xr-xhistory.txt1
-rw-r--r--threads.js10
2 files changed, 6 insertions, 5 deletions
diff --git a/history.txt b/history.txt
index 15fabfb..ab67540 100755
--- a/history.txt
+++ b/history.txt
@@ -2193,3 +2193,4 @@ ______
* Morphic: keyboard shortcut ctrl/cmd-shift-a for ‘@‘
* Morphic: allow directly editing properties in inspector widgets
* Blocks: change the color of the %pause symbol to be more yellowish
+* Threads: fixed #506, thanks @haritop, for both the report and for providing the fix!!
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(),