summaryrefslogtreecommitdiff
path: root/js/Misc/c_block.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-02 20:21:14 +0530
committerSunil Shetye2018-07-02 21:20:51 +0530
commit5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (patch)
tree15164190cae390d0a701fcd7ce99fa3addb4134c /js/Misc/c_block.js
parent468de187d0ad59613aa73384976b58b78200ae43 (diff)
downloadsci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.tar.gz
sci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.tar.bz2
sci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.zip
add set block
Diffstat (limited to 'js/Misc/c_block.js')
-rw-r--r--js/Misc/c_block.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/Misc/c_block.js b/js/Misc/c_block.js
index 489ae67d..e47820c6 100644
--- a/js/Misc/c_block.js
+++ b/js/Misc/c_block.js
@@ -35,6 +35,11 @@ function c_block() {
c_block.prototype.get = function c_block() {
}
c_block.prototype.set = function c_block() {
+ this.i = parseFloat((arguments[0]["i"]))
+ this.o = parseFloat((arguments[0]["o"]))
+ this.rpar = parseFloat((arguments[0]["rpar"]))
+ this.funam = parseFloat((arguments[0]["funam"]))
+ this.lab = parseFloat((arguments[0]["lab"]))
this.x = arg1;
model = arg1.model;
graphics = arg1.graphics;