Skip to content

Commit 10dcb02

Browse files
authored
Merge pull request #63 from godswearhats/hats-dev
Prepping for v1.1 release
2 parents e98b577 + 01d94c1 commit 10dcb02

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The start, rotate and stop callbacks provide the following in the ui argument of
6868

6969
* `element`: The jQuery element being rotated.
7070
* `angle`: An object containing information about the rotation angle, with the following keys:
71-
* `start`: The angle at the begining of the rotation.
71+
* `start`: The angle at the beginning of the rotation.
7272
* `current`: The current angle of the rotation in radians.
7373
* `degrees`: The current angle of the rotation in degrees.
7474
* `stop`: The angle at the end of the rotation.

jquery.ui.rotatable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
angle: {
171171
start: this.elementStartAngle,
172172
current: this.elementCurrentAngle,
173-
degrees: this._angleInDegrees(this.elementCurrentAngle),
173+
degrees: Math.abs(this._angleInDegrees(this.elementCurrentAngle)),
174174
stop: this.elementStopAngle
175175
}
176176
}
@@ -184,7 +184,7 @@
184184

185185
// calculates the degrees for a given angle in radians
186186
_angleInDegrees: function (radians) {
187-
return Math.abs(radians) * 180 / Math.PI
187+
return radians * 180 / Math.PI
188188
},
189189

190190
// calculates the center of the element

0 commit comments

Comments
 (0)