Skip to content

Commit

Permalink
fix bug where variables would not properly reset
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeKittens committed Nov 13, 2013
1 parent 4e5ec40 commit a934af7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions extends/Animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,15 +547,20 @@ Example :
var i = 0;
var freq = null;
var img_seq = 0;
var prevSeq;

this.stop();

this.el.addLoopListener(function() {
var t;


// Catch when we're interrupted and haven't had a chance to reset
if (self._seq !== prevSeq) {
prevSeq = self._seq;
i = 0;
freq = null;
}

var seq = self._animations[self._seq], loop = self._loop == "loop";
var seq = self._animations[self._seq],
loop = self._loop == "loop";

function seqSize(img) {
if (seq.size) return seq.size;
Expand Down

0 comments on commit a934af7

Please sign in to comment.