summaryrefslogtreecommitdiff
path: root/js/Misc/func_block.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Misc/func_block.js')
-rw-r--r--js/Misc/func_block.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js
index 1d1f2889..42332455 100644
--- a/js/Misc/func_block.js
+++ b/js/Misc/func_block.js
@@ -1,32 +1,32 @@
/* autogenerated from "macros/Misc/func_block.sci" */
function func_block() {
func_block.prototype.define = function func_block() {
-model=scicos_model();
-model.sim=" ";
-model.in1=1;
-model.out=1;
-model.blocktype="c";
-model.dep_ut=[true,false];
-exprs="v=sin(u);y=u*v";
-gr_i=[];
-x=standard_define([2,2],model,exprs,gr_i);
+ model = scicos_model();
+ model.sim = " ";
+ model.in1 = 1;
+ model.out = 1;
+ model.blocktype = "c";
+ model.dep_ut = [true,false];
+ exprs = "v=sin(u);y=u*v";
+ gr_i = [];
+ x = standard_define([2,2],model,exprs,gr_i);
}
func_block.prototype.details = function func_block() {
}
func_block.prototype.get = function func_block() {
}
func_block.prototype.set = function func_block() {
-model=arg1.model;
-graphics=arg1.graphics;
-exprs=graphics.exprs;
-x=arg1;
-model=x.model;
-[ok,mac,exprs]=this.genfunc[exprs-1];
-if (ok) {
-model.sim=mac;
-graphics.exprs=exprs;
-x.model=model;
-x.graphics=graphics;
+ model = arg1.model;
+ graphics = arg1.graphics;
+ exprs = graphics.exprs;
+ x = arg1;
+ model = x.model;
+ [ok,mac,exprs] = this.genfunc[exprs-1];
+ if (ok) {
+ model.sim = mac;
+ graphics.exprs = exprs;
+ x.model = model;
+ x.graphics = graphics;
}
}
}