summaryrefslogtreecommitdiff
path: root/js/Linear/SAMPLEHOLD_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/SAMPLEHOLD_f.js')
-rw-r--r--js/Linear/SAMPLEHOLD_f.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/Linear/SAMPLEHOLD_f.js b/js/Linear/SAMPLEHOLD_f.js
index c56fe8a5..916f2834 100644
--- a/js/Linear/SAMPLEHOLD_f.js
+++ b/js/Linear/SAMPLEHOLD_f.js
@@ -10,14 +10,15 @@ function SAMPLEHOLD_f() {
model.blocktype = "d";
model.dep_ut = [true,false];
gr_i = [];
- x = standard_define([2,2],model," ",gr_i);
+ this.x = standard_define([2,2],model," ",gr_i);
}
SAMPLEHOLD_f.prototype.details = function SAMPLEHOLD_f() {
+ return this.x;
}
SAMPLEHOLD_f.prototype.get = function SAMPLEHOLD_f() {
}
SAMPLEHOLD_f.prototype.set = function SAMPLEHOLD_f() {
- x = arg1;
- x.model.firing = [];
+ this.x = arg1;
+ this.x.model.firing = [];
}
}