Skip to content

Commit

Permalink
Merge pull request #6 from bchr02/1.0.7
Browse files Browse the repository at this point in the history
1.0.7
  • Loading branch information
bchr02 authored Oct 12, 2016
2 parents ae5ede3 + d436365 commit 82b242d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ function Filejson(cfg) {
if( value instanceof Object ) {
value = new Proxy(value, this);
}

// The default behavior to store the value
Reflect.set(target, key, value, receiver);


if(!self.paused) {
self.save(function(error) {
if(error) {
Expand All @@ -69,6 +66,9 @@ function Filejson(cfg) {
}
});
}

// The default behavior to store the value
return Reflect.set(target, key, value, receiver);
}
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filejson",
"version": "1.0.6",
"version": "1.0.7",
"description": "Use a JSON encoded file to automatically save a JavaScript value to disk whenever that value changes.",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit 82b242d

Please sign in to comment.