1
0
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:
Nick O'Leary 2017-01-04 16:46:36 +00:00
parent 215c8fd261
commit ffa628be2d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -45,6 +45,9 @@ RED.search = (function() {
var properties = ['id','type','name','label','info']; 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++) { for (var i=0;i<properties.length;i++) {
if (n.hasOwnProperty(properties[i])) { if (n.hasOwnProperty(properties[i])) {
var v = n[properties[i]]; var v = n[properties[i]];