summaryrefslogtreecommitdiff
path: root/js/Sources/CURV_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 17:51:05 +0530
committerSunil Shetye2018-07-12 23:01:50 +0530
commit44a3807a94783e831070f0e003340af58dc64d16 (patch)
treecce50388afa463583d7a7aead34d40f5b02281f7 /js/Sources/CURV_f.js
parent0047c3bea1d86b12a08544f6f0833c63e77f6eac (diff)
downloadsci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.gz
sci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.bz2
sci2js-44a3807a94783e831070f0e003340af58dc64d16.zip
change graphics to object
Diffstat (limited to 'js/Sources/CURV_f.js')
-rw-r--r--js/Sources/CURV_f.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Sources/CURV_f.js b/js/Sources/CURV_f.js
index 17889b60..e34977ec 100644
--- a/js/Sources/CURV_f.js
+++ b/js/Sources/CURV_f.js
@@ -30,7 +30,7 @@ function CURV_f() {
CURV_f.prototype.set = function CURV_f() {
this.x = arg1;
this.model = arg1.model;
- var graphics = arg1.graphics;
+ this.graphics = arg1.graphics;
var rpar = this.model.rpar;
var ipar = this.model.ipar;
var n = ipar[1-1];
@@ -40,10 +40,10 @@ function CURV_f() {
while (true) {
[ln,fun]=where()
if (!or(fun=="do_eval")) {
- var tmpvar0 = edit_curv(xx,yy,"axy",[" "," "," "],gc)
- var xx = tmpvar0[0]
- var yy = tmpvar0[1]
- var ok = tmpvar0[2]
+ var tmpvar0 = edit_curv(xx,yy,"axy",[" "," "," "],gc);
+ var xx = tmpvar0[0];
+ var yy = tmpvar0[1];
+ var ok = tmpvar0[2];
var gc = tmpvar0[3];
} else {
var ok = true;
@@ -63,7 +63,7 @@ function CURV_f() {
this.model.rpar = new ScilabDouble([xx.slice()],[yy.slice()],[rect.slice()]);
var axisdata = gc[2-1];
this.model.ipar = new ScilabDouble([size(xx,"*")],[axisdata.slice()]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}