Add 'changed' property to nodes to track undeployed changes

Part of #33
This commit is contained in:
Nicholas O'Leary
2013-11-15 23:40:36 +00:00
parent f7fc0760ca
commit e703fa1b6b
4 changed files with 18 additions and 3 deletions

View File

@@ -274,7 +274,7 @@ RED.nodes = function() {
RED.nodes.add(configNode);
}
} else {
var node = {x:n.x,y:n.y,z:n.z,type:0,wires:n.wires};
var node = {x:n.x,y:n.y,z:n.z,type:0,wires:n.wires,changed:false};
if (createNewIds) {
node.z = RED.view.getWorkspace();
node.id = getID();