GUI -- TopoView - working on mouse gestures - drag, click on nodes; mouseover,mouseout (WIP).
Change-Id: I2ecd4f805267fe72685381eb297a3d4cbbbd360a
diff --git a/web/gui/src/main/webapp/app/fw/svg/svgUtil.js b/web/gui/src/main/webapp/app/fw/svg/svgUtil.js
index e99da3c..ab56ddd 100644
--- a/web/gui/src/main/webapp/app/fw/svg/svgUtil.js
+++ b/web/gui/src/main/webapp/app/fw/svg/svgUtil.js
@@ -112,16 +112,14 @@
// consider this the same as a 'click'
// (selection of a node)
if (clickEnabled()) {
- selectCb(d, this);
- // TODO: set 'this' context instead of param
+ selectCb.call(this, d);
}
}
d.fixed &= ~6;
// hook at the end of a drag gesture
if (dragEnabled()) {
- atDragEnd(d, this);
- // TODO: set 'this' context instead of param
+ atDragEnd.call(this, d);
}
}
});