Skip to content

Commit

Permalink
fix(initially): fixes init delay on manual start
Browse files Browse the repository at this point in the history
  • Loading branch information
Unai Recio committed Nov 3, 2014
1 parent 14b110c commit 4190c8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.textillate.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@
};

base.start = function (index) {
base.triggerEvent('start');
setTimeout(function () {
base.triggerEvent('start');

(function run (index) {
base.in(index, function () {
Expand All @@ -221,6 +222,7 @@
}
});
}(index || 0));
}, base.options.initialDelay);
};

base.stop = function () {
Expand Down

0 comments on commit 4190c8a

Please sign in to comment.