mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
let join also accumulate strings (and not fail)
This commit is contained in:
@@ -239,6 +239,9 @@
|
||||
var val = $(this).val();
|
||||
$(".node-row-custom").toggle(val==='custom');
|
||||
$(".form-tips-auto").toggle(val==='auto');
|
||||
if (val === "auto") {
|
||||
$("#node-input-accumulate").attr('checked', false);
|
||||
}
|
||||
});
|
||||
|
||||
$("#node-input-build").change(function(e) {
|
||||
|
@@ -354,9 +354,12 @@ module.exports = function(RED) {
|
||||
currentCount:0,
|
||||
payload:{},
|
||||
targetCount:targetCount,
|
||||
type:"object",
|
||||
type:payloadType,
|
||||
msg:msg
|
||||
}
|
||||
if (payloadType === 'string') {
|
||||
inflight[partId].payload = [];
|
||||
}
|
||||
}
|
||||
else {
|
||||
inflight[partId] = {
|
||||
@@ -364,7 +367,6 @@ module.exports = function(RED) {
|
||||
payload:[],
|
||||
targetCount:targetCount,
|
||||
type:payloadType,
|
||||
joinChar: joinChar,
|
||||
msg:msg
|
||||
};
|
||||
if (payloadType === 'string') {
|
||||
@@ -374,7 +376,6 @@ module.exports = function(RED) {
|
||||
} else if (payloadType === 'buffer') {
|
||||
inflight[partId].bufferLen = 0;
|
||||
}
|
||||
|
||||
}
|
||||
if (node.timer > 0) {
|
||||
inflight[partId].timeout = setTimeout(function() {
|
||||
|
Reference in New Issue
Block a user