Expose context.keys within Function node

This commit is contained in:
Nick O'Leary 2017-07-04 14:52:14 +01:00
parent 6102a31a31
commit f7bb4a7d60
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 9 additions and 0 deletions

View File

@ -111,6 +111,9 @@ module.exports = function(RED) {
get: function() {
return node.context().get.apply(node,arguments);
},
keys: function() {
return node.context().keys.apply(node,arguments);
},
get global() {
return node.context().global;
},
@ -124,6 +127,9 @@ module.exports = function(RED) {
},
get: function() {
return node.context().flow.get.apply(node,arguments);
},
keys: function() {
return node.context().flow.keys.apply(node,arguments);
}
},
global: {
@ -132,6 +138,9 @@ module.exports = function(RED) {
},
get: function() {
return node.context().global.get.apply(node,arguments);
},
keys: function() {
return node.context().global.keys.apply(node,arguments);
}
},
setTimeout: function () {