-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpRunData.js
More file actions
34 lines (25 loc) · 869 Bytes
/
expRunData.js
File metadata and controls
34 lines (25 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var node = !(typeof exports === 'undefined');
if (node) {
}
(function (exports) {
var ExpRunData = function () {
// this class is also used on server, so don't use knockout here:
this.subjCounterGlobal = 0;
this.subjCounterPerGroup = [0];
/*this.var_values_by_id = {
"98fdg89dfg983jf034jj34f0304f34f": 5,
"fdlkdsfgkjsdhlgksjdflfhasdjfhjs": 324
};*/
};
ExpRunData.prototype.fromJS = function (data) {
this.subjCounterGlobal = data.subjCounterGlobal;
this.subjCounterPerGroup = data.subjCounterPerGroup;
};
ExpRunData.prototype.toJS = function () {
return {
subjCounterGlobal: this.subjCounterGlobal,
subjCounterPerGroup: this.subjCounterPerGroup
};
};
exports.ExpRunData = ExpRunData;
})(node ? exports : window);