Merge pull request #2274 from asturur/clean-origins

forgot some cleaning
This commit is contained in:
Juriy Zaytsev 2015-06-11 22:07:06 -04:00
commit 74d05ed8f3

View file

@ -150,9 +150,6 @@
*/
adjustPosition: function(to) {
var angle = degreesToRadians(this.angle),
hypotHalf = this.getWidth() / 2,
xHalf = Math.cos(angle) * hypotHalf,
yHalf = Math.sin(angle) * hypotHalf,
hypotFull = this.getWidth(),
xFull = Math.cos(angle) * hypotFull,
yFull = Math.sin(angle) * hypotFull;