mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Index all node properties for node search
This commit is contained in:
parent
215c8fd261
commit
ffa628be2d
@ -45,6 +45,9 @@ RED.search = (function() {
|
||||
|
||||
|
||||
var properties = ['id','type','name','label','info'];
|
||||
if (n._def && n._def.defaults) {
|
||||
properties = properties.concat(Object.keys(n._def.defaults));
|
||||
}
|
||||
for (var i=0;i<properties.length;i++) {
|
||||
if (n.hasOwnProperty(properties[i])) {
|
||||
var v = n[properties[i]];
|
||||
|
Loading…
Reference in New Issue
Block a user