diff --git a/CHANGELOG.md b/CHANGELOG.md index 70df0a526..0fba6d9be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +#### xxx: unreleased + +Fixes + + - Support array references in Debug property field + #### 0.14.1: Maintenance Release Fixes diff --git a/nodes/core/core/58-debug.js b/nodes/core/core/58-debug.js index 53f56eb06..491f49060 100644 --- a/nodes/core/core/58-debug.js +++ b/nodes/core/core/58-debug.js @@ -50,12 +50,9 @@ module.exports = function(RED) { var output = msg[property]; if (this.complete !== "false" && typeof this.complete !== "undefined") { property = this.complete; - var propertyParts = property.split("."); try { - output = propertyParts.reduce(function (obj, i) { - return obj[i]; - }, msg); - } catch (err) { + output = RED.util.getMessageProperty(msg,this.complete); + } catch(err) { output = undefined; } }