1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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 () {