polyflow
Version:
A flow-based programming framework
30 lines (23 loc) • 597 B
JavaScript
;
module.exports = function (polyflow) {
var Builder = function (build) {
this.build = build;
};
Builder.prototype.$initialize = function (argumentName) {
return this.build({
inputs: {
name: '"' + argumentName + '"'
}
});
};
polyflow.nano('core.unset', {
shortcut: 'unset',
Builder: Builder,
inputs: ['name'],
outputs: [],
fn: function ($inputs, $outputs, $flow) {
$flow.$remove($inputs.name);
$outputs.out();
}
});
};