mirror of https://github.com/node-red/node-red.git
Reorder group creation so groups:add is fired before nodes:change
parent
28418288e3
commit
5c0b500f48
|
@ -427,15 +427,16 @@ RED.group = (function() {
|
|||
h: 0,
|
||||
_def: RED.group.def
|
||||
}
|
||||
|
||||
group.z = nodes[0].z;
|
||||
RED.nodes.addGroup(group);
|
||||
|
||||
try {
|
||||
addToGroup(group,nodes);
|
||||
} catch(err) {
|
||||
RED.notify(err,"error");
|
||||
return;
|
||||
}
|
||||
group.z = nodes[0].z;
|
||||
|
||||
RED.nodes.addGroup(group);
|
||||
return group;
|
||||
}
|
||||
function addToGroup(group,nodes) {
|
||||
|
|
Loading…
Reference in New Issue