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