Skip to content

Commit

Permalink
Include fix for tbuser#14
Browse files Browse the repository at this point in the history
  • Loading branch information
iXce committed Aug 23, 2013
1 parent 77b59e2 commit 818d367
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascripts/thingiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,15 @@ Thingiview.prototype.getRotation = function() {
Thingiview.prototype.setRotation = function(rotate) {
rotation = rotate;

clearInterval(this.rotateTimer);

if (rotate) {
this.rotateTimer = setInterval((function(self) {
return function() {
self.rotateLoop();
}
})(this), 1000/60);
} else {
clearInterval(this.rotateTimer);
this.rotateTimer = null;
}

Expand Down

0 comments on commit 818d367

Please sign in to comment.