Allow a node to declare settings that should be exported

This commit is contained in:
Nick O'Leary
2017-03-01 15:01:07 +00:00
parent 4794fe495c
commit fca77a868f
6 changed files with 48 additions and 6 deletions

View File

@@ -50,8 +50,13 @@ function registerType(nodeSet,type,constructor,opts) {
type = nodeSet;
nodeSet = "";
}
if (opts && opts.credentials) {
credentials.register(type,opts.credentials);
if (opts) {
if (opts.credentials) {
credentials.register(type,opts.credentials);
}
if (opts.settings) {
settings.registerNodeSettings(type,opts.settings);
}
}
registry.registerType(nodeSet,type,constructor);
}