Skip to content

Commit

Permalink
changed my mind...keeping the syntactic sugar by using arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
janhartigan committed May 17, 2011
1 parent 30647d2 commit 2c70cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timed.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
parsed.units = 'milliseconds';

for (name in arguments[0]) {
timer = create_timer.apply(this, [arguments[0][name].delay, arguments[0][name].units, parsed.callback]);
timer = create_timer.apply(this, [arguments[0][name][0], arguments[0][name][1], parsed.callback]);
parsed.delay += timer.delay;
}
} else {
Expand Down

0 comments on commit 2c70cf7

Please sign in to comment.