@rcsb/rcsb-saguaro-3d
Version:
RCSB Molstar/Saguaro Web App
19 lines (18 loc) • 495 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FunctionCall = void 0;
var FunctionCall;
(function (FunctionCall) {
function onetimeCall(f) {
const g = {
onetime: (x) => {
f(x);
g.onetime = (x) => { };
}
};
return (x) => {
g.onetime(x);
};
}
FunctionCall.onetimeCall = onetimeCall;
})(FunctionCall || (exports.FunctionCall = FunctionCall = {}));