Permalink
Browse files

only reset degrees when timer reset is true

  • Loading branch information...
1 parent 09a09f0 commit 9c07225b7a8d9f646c82b146ca8e3c20cedbd097 @mhayes mhayes committed Nov 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 vendor/assets/javascripts/foundation/jquery.foundation.orbit.js
@@ -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;

0 comments on commit 9c07225

Please sign in to comment.