Skip to content

Commit

Permalink
Removing unneeded attributes for major release
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Apr 14, 2020
1 parent b5561f5 commit 4c238ea
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 23 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,6 @@ _Function_

Event listener for before a record is set, receives `key`, `data`.

**debounce**
_Number_

Optional `Number` of milliseconds to debounce changes transmitted over the wire, defaults to `0`.

Example of specifying a 250ms debounce:
```javascript
const store = haro(null, {debounce: 250});
```

**index**
_Array_

Expand Down
8 changes: 3 additions & 5 deletions lib/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2020
* @license BSD-3-Clause
* @version 7.0.1
* @version 7.0.2
*/
"use strict";

Expand Down Expand Up @@ -107,10 +107,8 @@
}

class Haro {
constructor ({debounce = 0, delimiter = "|", id = uuid(), index = [], key = "", pattern = "\\s*|\\t*", versioning = false} = {}) {
constructor ({delimiter = "|", id = uuid(), index = [], key = "", pattern = "\\s*|\\t*", versioning = false} = {}) {
this.data = new Map();
this.debounce = debounce;
this.debounced = new Map();
this.delimiter = delimiter;
this.id = id;
this.index = index;
Expand Down Expand Up @@ -474,7 +472,7 @@
return obj;
}

factory.version = "7.0.1";
factory.version = "7.0.2";

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c238ea

Please sign in to comment.