Skip to content

Commit

Permalink
Prepare for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Jul 19, 2017
1 parent d6716ca commit 159f261
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Expand Up @@ -6,7 +6,7 @@ Mark Wubben <mark@novemberborn.net>
Duncan Beevers <duncan@dweebd.com>
Soutaro Matsumoto <matsumoto@soutaro.com>
Rogier Schouten <github@workingcode.ninja>
Benjamin Gruenbaum <inglor@gmail.com>
Benjamin Gruenbaum <benji@peer5.com>
Karl O'Keeffe <karl@geckoboard.com>
Clark Tomlinson <fallen013@gmail.com>
Josh Goldberg <joshuakgoldberg@outlook.com>
Expand Down
5 changes: 5 additions & 0 deletions History.md
@@ -1,4 +1,9 @@

v2.1.1 / 2017-07-19
==================

* support passing parameters in nextTick (fixes #122)

v2.1.0 / 2017-07-18
==================

Expand Down
6 changes: 2 additions & 4 deletions lolex.js
Expand Up @@ -182,7 +182,7 @@ function runJobs(clock) {
}
for (var i = 0; i < clock.jobs.length; i++) {
var job = clock.jobs[i];
job.func.apply(null, job.func.args);
job.func.apply(null, job.args);
}
clock.jobs = [];
}
Expand Down Expand Up @@ -302,8 +302,6 @@ function lastTimer(clock) {
}

function callTimer(clock, timer) {
var exception;

if (typeof timer.interval === "number") {
clock.timers[timer.id].callAt += timer.interval;
} else {
Expand Down Expand Up @@ -483,7 +481,7 @@ function createClock(now, loopLimit) {
clock.nextTick = function nextTick(func) {
return enqueueJob(clock, {
func: func,
args: Array.prototype.slice.call(1)
args: Array.prototype.slice.call(arguments, 1)
});
};
clock.setInterval = function setInterval(func, timeout) {
Expand Down

0 comments on commit 159f261

Please sign in to comment.