client/js/full-json.js
changeset 282 12ee99b182cd
parent 170 603ffa4c6fa5
child 293 fba23fde14ba
equal deleted inserted replaced
281:9ff388c9bc8d 282:12ee99b182cd
    27     };
    27     };
    28     var _thrSave = Rkns._.throttle(
    28     var _thrSave = Rkns._.throttle(
    29         function() {
    29         function() {
    30             setTimeout(_save, 100);
    30             setTimeout(_save, 100);
    31         }, 1000);
    31         }, 1000);
    32     _proj.on("add:nodes add:edges add:users", function(_model) {
    32     _proj.on("add:nodes add:edges add:users add:views", function(_model) {
    33         _model.on("change remove", function(_model) {
    33         _model.on("change remove", function(_model) {
    34             _thrSave();
    34             _thrSave();
    35         });
    35         });
    36         _thrSave();
    36         _thrSave();
    37     });
    37     });