mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-12 11:25:04 +01:00
14 lines
249 B
JavaScript
14 lines
249 B
JavaScript
import {Generator} from '../id-generator'
|
|
|
|
export function Ref(value) {
|
|
this.id = Generator.genID();
|
|
this.value = value;
|
|
}
|
|
|
|
Ref.prototype.set = function(value) {
|
|
this.value = value;
|
|
};
|
|
|
|
Ref.prototype.get = function() {
|
|
return this.value;
|
|
};
|