mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00:00
join node - honour 3.x behaviour for old instances.
but don't use msg.parts for new instances in manual join mode unless set.
This commit is contained in:
parent
1a8b37b4e3
commit
53d8b97fff
@ -266,6 +266,12 @@
|
||||
},
|
||||
oneditprepare: function() {
|
||||
var node = this;
|
||||
$("#node-input-useparts").on("change", function(e) {
|
||||
if (node.useparts === undefined) {
|
||||
node.useparts = true;
|
||||
$("#node-input-useparts").attr('checked', true);
|
||||
}
|
||||
});
|
||||
|
||||
$("#node-input-mode").on("change", function(e) {
|
||||
var val = $(this).val();
|
||||
|
@ -444,7 +444,8 @@ module.exports = function(RED) {
|
||||
this.count = Number(n.count || 0);
|
||||
this.joiner = n.joiner||"";
|
||||
this.joinerType = n.joinerType||"str";
|
||||
this.useparts = n.useparts || false;
|
||||
if (n.useparts === undefined) { this.useparts = true; }
|
||||
else { this.useparts = n.useparts || false; }
|
||||
|
||||
this.reduce = (this.mode === "reduce");
|
||||
if (this.reduce) {
|
||||
|
Loading…
Reference in New Issue
Block a user