jsketcher/web/app/sketcher/shapes/ref.js
2016-11-29 22:48:16 -08:00

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;
};