@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
19 lines • 512 B
JavaScript
//namespace CustomersCanvas.Utils {
var Lazy = /** @class */ (function () {
function Lazy(_factory) {
this._factory = _factory;
}
Object.defineProperty(Lazy.prototype, "value", {
get: function () {
return this._value != null ?
this._value
: (this._value = this._factory());
},
enumerable: true,
configurable: true
});
return Lazy;
}());
export { Lazy };
//}
//# sourceMappingURL=Lazy.js.map