Skip to content

Commit

Permalink
only reset degrees when timer reset is true
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hayes committed Nov 13, 2012
1 parent 09a09f0 commit 9c07225
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -290,11 +290,14 @@
"-o-transform": degreeCSS,
"-ms-transform": degreeCSS
});
if (reset) {
this.degrees = 0;
}
if(this.degrees > 180) {
this.$rotator.addClass('move');
this.$mask.addClass('move');
}
if(this.degrees > 360 || reset) {
if(this.degrees > 360) {
this.$rotator.removeClass('move');
this.$mask.removeClass('move');
this.degrees = 0;
Expand Down

0 comments on commit 9c07225

Please sign in to comment.