Skip to content

Commit

Permalink
Updated distributables
Browse files Browse the repository at this point in the history
  • Loading branch information
jylauril committed May 24, 2013
1 parent e568327 commit 1a819b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/jquery.runner-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions build/jquery.runner.js
@@ -1,13 +1,13 @@
/*!
* jQuery-runner - v2.1.3 - 2013-05-22
* jQuery-runner - v2.2.0 - 2013-05-24
* https://github.com/jylauril/jquery-runner/
* Copyright (c) 2013 Jyrki Laurila <https://github.com/jylauril>
*/
(function() {
var Runner, formatTime, meta, pad, runners, uid, _uid;

meta = {
version: "2.1.3",
version: "2.2.0",
name: "jQuery-runner"
};

Expand Down Expand Up @@ -40,6 +40,7 @@
}
for (i = _i = 0, _len = steps.length; _i < _len; i = ++_i) {
step = steps[i];
value = 0;
if (time >= step) {
value = Math.floor(time / step);
time -= value * step;
Expand Down Expand Up @@ -188,6 +189,9 @@

last = this.lastTime;
lap = last - this.lapTime;
if (this.settings.countdown) {
lap = -lap;
}
if (this.running || lap) {
this.lastLap = lap;
this.lapTime = last;
Expand All @@ -198,10 +202,16 @@
};

Runner.prototype.reset = function(stop) {
var nowTime;

if (stop) {
this.stop();
}
this.startTime = this.lapTime = this.lastTime = $.now();
nowTime = $.now();
if (typeof this.settings.startAt === 'number' && !this.settings.countdown) {
nowTime -= this.settings.startAt;
}
this.startTime = this.lapTime = this.lastTime = nowTime;
this.total = this.settings.startAt;
this.value(this.total);
this.finished = false;
Expand Down

0 comments on commit 1a819b2

Please sign in to comment.