From 47eba7932d9e4fcdb3c9640fa1028530a2df8536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Sun, 9 Jul 2017 08:32:10 +0000 Subject: [PATCH] graph_editor: update to support recent renderjs RSVP.Monitor no longer exist. Use the gadget's own monitor instead (not sure it is safe) --- .../dream_graph_editor/jsplumb/jsplumb.js.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/dream_graph_editor/jsplumb/jsplumb.js.js b/bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/dream_graph_editor/jsplumb/jsplumb.js.js index 32a1e07793..797759cb0b 100644 --- a/bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/dream_graph_editor/jsplumb/jsplumb.js.js +++ b/bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/dream_graph_editor/jsplumb/jsplumb.js.js @@ -826,13 +826,12 @@ Container: this.props.main }); draggable(gadget); - - this.props.nodes_click_monitor = RSVP.Monitor(); + + this.props.nodes_click_monitor = this.__monitor; return RSVP.all([waitForDrop(gadget), waitForConnection(gadget), waitForConnectionDetached(gadget), - waitForConnectionClick(gadget), - gadget.props.nodes_click_monitor + waitForConnectionClick(gadget) ]); }); -- 2.30.9