Skip to content

Commit

Permalink
Changing onbatch arguments to be ['type', Tuple]
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Oct 20, 2015
1 parent fd3369d commit f5370b2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Logs persistent storage messages to `console`, default is `true`.
**onbatch**
_Function_
Event listener which receives a `Tuple` of records after a batch set, receives a `Tuple` of `Tuples`.
Event listener for a batch operation, receives two arguments ['type', `Tuple`].
**onclear**
_Function_
Expand Down
6 changes: 3 additions & 3 deletions lib/haro.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2015
* @license BSD-3-Clause
* @link http://haro.rocks
* @version 1.9.0
* @version 1.9.1
*/
"use strict";

Expand Down Expand Up @@ -431,7 +431,7 @@ class Haro {
}

return defer.promise.then(arg => {
this.onbatch(arg);
this.onbatch(type, arg);

return arg;
}, e => {
Expand Down Expand Up @@ -1272,7 +1272,7 @@ function factory (data = null, config = {}, indexes = []) {
}

factory.transform = cast;
factory.version = "1.9.0";
factory.version = "1.9.1";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
6 changes: 3 additions & 3 deletions lib/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2015
* @license BSD-3-Clause
* @link http://haro.rocks
* @version 1.9.0
* @version 1.9.1
*/
"use strict";

Expand Down Expand Up @@ -459,7 +459,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}

return defer.promise.then(function (arg) {
_this2.onbatch(arg);
_this2.onbatch(type, arg);

return arg;
}, function (e) {
Expand Down Expand Up @@ -1426,7 +1426,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}

factory.transform = cast;
factory.version = "1.9.0";
factory.version = "1.9.1";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
2 changes: 1 addition & 1 deletion lib/haro.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/haro.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haro",
"version": "1.9.0",
"version": "1.9.1",
"description": "Harō is a modern immutable DataStore using Maps, Sets, Promises, & Tuples",
"main": "lib/haro.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Haro {
}

return defer.promise.then(arg => {
this.onbatch(arg);
this.onbatch(type, arg);

return arg;
}, e => {
Expand Down

0 comments on commit f5370b2

Please sign in to comment.