Commit ca7f49c6 authored by Jérome Perrin's avatar Jérome Perrin

suspend jsplumb redrawing while loading

parent 969859c5
...@@ -136,7 +136,10 @@ ...@@ -136,7 +136,10 @@
_id: "dream_demo" _id: "dream_demo"
}, function (err, response) { }, function (err, response) {
if (response !== undefined && response.data !== undefined) { if (response !== undefined && response.data !== undefined) {
loadData(response.data); var load = function () {
loadData(response.data);
}
jsPlumb.doWhileSuspended(load);
} }
// once the data is read, we can subscribe to every changes // once the data is read, we can subscribe to every changes
$.subscribe("Dream.Gui.onDataChange", function (event, data) { $.subscribe("Dream.Gui.onDataChange", function (event, data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment