3
0
Fork 0
xnode/lib-build/debug-server/node_lib/lib/build-config.js

17 lines
415 B
JavaScript
Raw Permalink Normal View History

2022-11-13 00:46:38 +00:00
var logger = require('winston').loggers.get('main');
var clone = require('clone');
var tcrud = require('./tcrud');
var tcrudField = require('./tcrud-field');
exports.createTCrudRoot = function() {
return tcrud.newInstance('root');
}
exports.createTCrud = function(parent, id) {
var result = tcrud.newInstance(id);
parent.tchilds.push(result);
result.tparent = parent;
return result;
}