Skip to content

Conversation

cntgfy90
Copy link

Tried to shorten a little bit the code and therefore make it more concise.

Copy link

@dhoshya dhoshya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one minor change.

} else {
this.positionX = parseInt(this.positionX);
}
isNaN(parseInt(this.positionX)) ?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of this can be in one line.

} else {
this.positionY = parseInt(this.positionY);
}
isNaN(parseInt(this.positionY)) ?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants