Skip to content

Commit 8bfd8a4

Browse files
Lev KanterLev Kanter
authored andcommitted
added reset fn in anim_util
1 parent e49dcae commit 8bfd8a4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/tc.anim_util.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,21 @@
9999
return this;
100100
};
101101

102-
this.pause = function(reset) {
102+
this.pause = function() {
103103
internal.cycling = false;
104104
o.on_pause.apply(me);
105-
if (reset) {
106-
internal.theta = 0;
107-
}
108105
return this;
109106
};
110107

111108
this.isCycling = function() {
112109
return internal.cycling;
113110
};
114111

112+
this.reset = function() {
113+
internal.theta = 0;
114+
return this;
115+
};
116+
115117
this.setSpeed = function(speed) {
116118
if (typeof speed === "number") {
117119
internal.speed = speed;

0 commit comments

Comments
 (0)