Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toJS () {
return state().toJS();
}
})
.init(function () {
const source = Rx.Observable.fromEvent(
this, 'change',
(ev) => ev[0]);
this.subscribe = source.subscribe.bind(source);
this.filter = source.filter.bind(source);
});
instance = stamp.create();
return stampit.extend(
instance,
{ stamp }
);
};
.enclose(function () {
var factory = stampit(),
attrs = factory
.state.apply(factory,
sources)
.create();
return stampit.extend(this, {
/**
* Return the value of the attribute requested.
* @param {String} attr The name of the attribute to return.
* @return {Any} The value of the requested attribute.
*/
get: function get(attr) {
var val = dotty.get(attrs, attr);
if (val === undefined) {
this.emit('undefined',
'WARNING: Undefined environment variable: ' + attr, attr);
}
return val;
},
/**
* Set the value of an attribute.
* @param {String} attr The name of the attribute to set.