function setDirty(d) {
        dirty = d;
        if (!d) {
            allNodes.clearState()
        }
        RED.events.emit("workspace:dirty",{dirty:dirty});
    }
An Interface to nodes and utility functions for creating/adding/deleting nodes and links
@namespace RED.nodes