kopia lustrzana https://github.com/backface/turtlestitch
associate setting with JSF-block rather than the evaluator
rodzic
02509e157d
commit
4b5e091b39
|
@ -10,6 +10,7 @@
|
||||||
* updated animation library
|
* updated animation library
|
||||||
* updated frequency-distribution-analysis library
|
* updated frequency-distribution-analysis library
|
||||||
* extensions: added some world-map extension primitives
|
* extensions: added some world-map extension primitives
|
||||||
|
* threads: associate setting with JSF-block rather than the evaluator
|
||||||
|
|
||||||
## 6.9.0
|
## 6.9.0
|
||||||
* **Notable Changes:**
|
* **Notable Changes:**
|
||||||
|
|
|
@ -1208,6 +1208,9 @@ Process.prototype.reifyPredicate = function (topBlock, parameterNames) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Process.prototype.reportJSFunction = function (parmNames, body) {
|
Process.prototype.reportJSFunction = function (parmNames, body) {
|
||||||
|
if (!this.enableJS) {
|
||||||
|
throw new Error('JavaScript extensions for Snap!\nare turned off');
|
||||||
|
}
|
||||||
return Function.apply(
|
return Function.apply(
|
||||||
null,
|
null,
|
||||||
parmNames.itemsArray().concat([body])
|
parmNames.itemsArray().concat([body])
|
||||||
|
@ -1227,9 +1230,11 @@ Process.prototype.evaluate = function (
|
||||||
return this.returnValueToParentContext(null);
|
return this.returnValueToParentContext(null);
|
||||||
}
|
}
|
||||||
if (context instanceof Function) {
|
if (context instanceof Function) {
|
||||||
|
/*
|
||||||
if (!this.enableJS) {
|
if (!this.enableJS) {
|
||||||
throw new Error('JavaScript extensions for Snap!\nare turned off');
|
throw new Error('JavaScript extensions for Snap!\nare turned off');
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
return context.apply(
|
return context.apply(
|
||||||
this.blockReceiver(),
|
this.blockReceiver(),
|
||||||
args.itemsArray().concat([this])
|
args.itemsArray().concat([this])
|
||||||
|
|
Ładowanie…
Reference in New Issue