summaryrefslogtreecommitdiff
path: root/js/Electrical/MOTOR.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/MOTOR.js')
-rw-r--r--js/Electrical/MOTOR.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Electrical/MOTOR.js b/js/Electrical/MOTOR.js
index b9dc349b..3aa96510 100644
--- a/js/Electrical/MOTOR.js
+++ b/js/Electrical/MOTOR.js
@@ -7,9 +7,9 @@ function MOTOR() {
this.model.sim = new ScilabString(["motor"]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([true,false]);
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MOTOR\",sz(1),sz(2));"]);
- this.exprs = "";
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([this.exprs]),this.gr_i);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MOTOR\",sz(1),sz(2));"]);
+ var exprs = "";
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([exprs]),gr_i);
this.x.graphics.out_implicit = [["I"],["I"]];
this.x.graphics.in_implicit = ["I"];
return new BasicBlock(this.x);