kopia lustrzana https://github.com/backface/turtlestitch
rodzic
94c44902e1
commit
8b5fa7f23c
|
@ -2275,3 +2275,7 @@ ______
|
||||||
------
|
------
|
||||||
* Blocks: Make upvars mutable
|
* Blocks: Make upvars mutable
|
||||||
* GUI: fixed #585 (sprite name conflict with stage). Thanks, Michael, for the report!
|
* GUI: fixed #585 (sprite name conflict with stage). Thanks, Michael, for the report!
|
||||||
|
|
||||||
|
140929
|
||||||
|
------
|
||||||
|
* Threads: fixed #591 fully copy local variables for sprite duplicates and (Scratch-like) clones
|
||||||
|
|
|
@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.threads = '2014-September-18';
|
modules.threads = '2014-September-29';
|
||||||
|
|
||||||
var ThreadManager;
|
var ThreadManager;
|
||||||
var Process;
|
var Process;
|
||||||
|
@ -2973,8 +2973,11 @@ VariableFrame.prototype.toString = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
VariableFrame.prototype.copy = function () {
|
VariableFrame.prototype.copy = function () {
|
||||||
var frame = new VariableFrame(this.parentFrame);
|
var frame = new VariableFrame(this.parentFrame),
|
||||||
frame.vars = copy(this.vars);
|
myself = this;
|
||||||
|
this.names().forEach(function (vName) {
|
||||||
|
frame.addVar(vName, myself.getVar(vName));
|
||||||
|
});
|
||||||
return frame;
|
return frame;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue