Skip to content

Commit

Permalink
Fixed errors with variables declarations in polygon_primitives.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlNedorezov committed Jul 3, 2017
1 parent acd1628 commit a0886dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions front/js/app/polygon_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function Polygon(startX, startY, polygonId, type = "poly") {
};

this.onDrag = function (evt) {
point = getPoint(evt);
let point = getPoint(evt);

if (this.type === "poly" && this.activeHandle !== null) {
this.activeHandle.x = point.x;
Expand Down Expand Up @@ -400,11 +400,11 @@ function Polygon(startX, startY, polygonId, type = "poly") {
// Any ideas how to do it better?
this.shouldConsumeEvent = function (event) {

evPoint = getPoint(event);
let evPoint = getPoint(event);

let minDist = 99;

for (pt in this.pointsList) {
for (let pt in this.pointsList) {
let x0 = this.pointsList[pt][0];
let y0 = this.pointsList[pt][1];

Expand Down

0 comments on commit a0886dc

Please sign in to comment.