equal
deleted
inserted
replaced
21 success: function(data, textStatus, jqXHR) { |
21 success: function(data, textStatus, jqXHR) { |
22 } |
22 } |
23 }); |
23 }); |
24 |
24 |
25 } |
25 } |
26 var _thrSave = Rkns._.throttle(_save, 2000); |
26 var _thrSave = Rkns._.throttle( |
|
27 function() { |
|
28 setTimeout(_save, 100) |
|
29 }, 1000); |
27 _load(); |
30 _load(); |
28 _proj.on("add:nodes add:edges add:users", function(_model) { |
31 _proj.on("add:nodes add:edges add:users", function(_model) { |
29 _model.on("change remove", function(_model) { |
32 _model.on("change remove", function(_model) { |
30 _thrSave(); |
33 _thrSave(); |
31 }); |
34 }); |