kopia lustrzana https://github.com/backface/turtlestitch
fixed #702
rodzic
667193b9f0
commit
14821611fa
18
byob.js
18
byob.js
|
@ -9,7 +9,7 @@
|
||||||
written by Jens Mönig
|
written by Jens Mönig
|
||||||
jens@moenig.org
|
jens@moenig.org
|
||||||
|
|
||||||
Copyright (C) 2014 by Jens Mönig
|
Copyright (C) 2015 by Jens Mönig
|
||||||
|
|
||||||
This file is part of Snap!.
|
This file is part of Snap!.
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ SymbolMorph, isNil*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.byob = '2014-November-20';
|
modules.byob = '2015-January-13';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
@ -209,12 +209,14 @@ CustomBlockDefinition.prototype.copyAndBindTo = function (sprite) {
|
||||||
|
|
||||||
c.receiver = sprite; // only for (kludgy) serialization
|
c.receiver = sprite; // only for (kludgy) serialization
|
||||||
c.declarations = copy(this.declarations); // might have to go deeper
|
c.declarations = copy(this.declarations); // might have to go deeper
|
||||||
c.body = Process.prototype.reify.call(
|
if (c.body) {
|
||||||
null,
|
c.body = Process.prototype.reify.call(
|
||||||
this.body.expression,
|
null,
|
||||||
new List(this.inputNames())
|
this.body.expression,
|
||||||
);
|
new List(this.inputNames())
|
||||||
c.body.outerContext = null;
|
);
|
||||||
|
c.body.outerContext = null;
|
||||||
|
}
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue