Skip to content

Commit f42bc0d

Browse files
committed
removed globalVar prototype, not very usefull
1 parent f0c1f4d commit f42bc0d

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

build/stateElement.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -265,25 +265,3 @@ export let statesMixin = (listOfComponents, baseClass) => class extends baseClas
265265
}
266266
}
267267
};
268-
/**
269-
* Prototype for Global Var
270-
*/
271-
class GlobalVar {
272-
constructor(name, defaultVal, key) {
273-
this.key = key || "none";
274-
this.name = name;
275-
this._var = new StateVariable(name + ":" + key, defaultVal);
276-
}
277-
setValue(inputVal) {
278-
this._var.value = inputVal;
279-
}
280-
setKey(inputKey) {
281-
this.key = inputKey;
282-
this._var.name = this.name + ":" + this.key;
283-
// set default variable if none
284-
this._var._val = this._var.GET() || this._var.CREATE(this._var.default_val);
285-
}
286-
getVar() {
287-
return this._var;
288-
}
289-
}

src/stateElement.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -322,31 +322,3 @@ export let statesMixin = (listOfComponents:Array<StateVariable|StateTransition|M
322322

323323
}
324324

325-
/**
326-
* Prototype for Global Var
327-
*/
328-
329-
class GlobalVar{
330-
key:string
331-
name:string
332-
_var:StateVariable
333-
334-
constructor(name:string,defaultVal:any,key?:string){
335-
this.key = key || "none";
336-
this.name = name;
337-
this._var = new StateVariable(name+":"+key, defaultVal);
338-
}
339-
340-
setValue(inputVal:any){
341-
this._var.value = inputVal;
342-
}
343-
setKey(inputKey:string){
344-
this.key = inputKey;
345-
this._var.name = this.name + ":" + this.key;
346-
// set default variable if none
347-
this._var._val = this._var.GET() || this._var.CREATE(this._var.default_val);
348-
}
349-
getVar(){
350-
return this._var;
351-
}
352-
}

0 commit comments

Comments
 (0)