on xenial help sign in
DragHandle: javascript argument name clashes with local variable. Yes it works, but is a little unsafe
commit0f7ab28a33233519d182b35b99f6be77090c6d8d authorGerry Boland <gerry.boland@canonical.com> dateMon 4 Nov 2013, 15:44 (13 years ago) parent00ef0e6
1 file changed+2−2
Components/DragHandle.qml+2−2
Components/DragHandle.qml+2−2
@@ -113,8 +113,8 @@ EdgeDragArea {
113113 }
114114 }
115115
116− function limitMovement(step) {
117− var targetValue = MathLocal.clamp(dragParent[targetProp] + step, minValue, maxValue);
116+ function limitMovement(inputStep) {
117+ var targetValue = MathLocal.clamp(dragParent[targetProp] + inputStep, minValue, maxValue);
118118 var step = targetValue - dragParent[targetProp];
119119
120120 if (hintDisplacement == 0) {