Fixed bug in the executor preventing usage of update and remove without callback

pull/2/head
Louis Chatriot 12 years ago
parent 2f2b9ab58f
commit f54872641e
  1. 1
      lib/datastore.js
  2. 3
      lib/executor.js

@ -590,5 +590,4 @@ Datastore.prototype.remove = function () {
module.exports = Datastore; module.exports = Datastore;

@ -24,7 +24,8 @@ function Executor () {
cb(); cb();
}; };
task.arguments.push(callback); // task.arguments is an array-like object so push is not available
task.arguments[task.arguments.length] = callback;
} }
task.fn.apply(task.this, task.arguments); task.fn.apply(task.this, task.arguments);

Loading…
Cancel
Save