3
0
Fork 0
xnode/lib-build/debug-server/node_lib/lib/build-config.js
2022-11-13 01:46:38 +01:00

17 lines
415 B
JavaScript

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;
}