Skip to content

Commit

Permalink
move the batch __addOp method to the Batch prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalAr committed Dec 21, 2014
1 parent 0bcfd76 commit e9b5207
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Binary file removed examples/lena_from_gif.png
Binary file not shown.
13 changes: 7 additions & 6 deletions lib/Batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
this.__image = image;
this.__queue = [];
this.__running = false;
this.__addOp = function(handle, args) {
this.__queue.push({
handle: handle,
args: args
});
};
}

Batch.prototype.__addOp = function(handle, args) {
this.__queue.push({
handle: handle,
args: args
});
};

// EXPORTS
// -------
module.exports = Batch;
Expand Down

0 comments on commit e9b5207

Please sign in to comment.