persist.js
function PersistInNode(n) {
        RED.nodes.createNode(this,n);
        var node = this;

        node.name = n.name;
        node.storageNode = RED.nodes.getNode(n.storageNode);

        node.on("input", function(msg) {
            node.storageNode.store(node.name, msg);
        });
    }
function PersistInNode(n) {
        RED.nodes.createNode(this,n);
        var node = this;

        node.name = n.name;
        node.storageNode = RED.nodes.getNode(n.storageNode);

        node.on("input", function(msg) {
            node.storageNode.store(node.name, msg);
        });
    }
function PersistInNode ( n ) { RED . nodes . createNode ( this , n ) ; var node = this ; node . name = n . name ; node . storageNode = RED . nodes . getNode ( n . storageNode ) ; node . on ( "input" , function ( msg ) { node . storageNode . store ( node . name , msg ) ; } ) ; }
Record data to persist
Record data to persist