Skip to content

Commit

Permalink
minor syntax issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchimp committed Dec 13, 2013
1 parent cfa29f9 commit dc08492
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
11 changes: 5 additions & 6 deletions tock.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ var Tock = (function(options) {
}

if (next_interval_in <= 0) {
missed_ticks = Math.floor(Math.abs(next_interval_in) / interval)
time += missed_ticks * interval
missed_ticks = Math.floor(Math.abs(next_interval_in) / interval);
time += missed_ticks * interval;
if (go) {
_tick();
}
Expand Down Expand Up @@ -148,8 +148,7 @@ var Tock = (function(options) {
var ms = new Date(time).getTime();

if (!ms) {
var time_split = time.split(':'),
ms;
var time_split = time.split(':');

ms = parseInt(time_split[0], 10) * 60000;

Expand Down Expand Up @@ -177,7 +176,7 @@ var Tock = (function(options) {
go = true;
var t = this;
this.timeout = window.setTimeout(_tick, 100);
};
}

/**
* Called by Tock internally - use start() instead
Expand All @@ -192,7 +191,7 @@ var Tock = (function(options) {
}

return {
start: start,
start: start,
stop: stop,
reset: reset,
lap: lap,
Expand Down
28 changes: 4 additions & 24 deletions tock.min.js

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

0 comments on commit dc08492

Please sign in to comment.