Skip to content

Commit

Permalink
fix: remove unused argument in notify
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Jul 31, 2017
1 parent 8637d66 commit 704f385
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
}
}

Observer.prototype.notify = function(key, val) {
Observer.prototype.notify = function(key) {
var self = this;

var depMap = null;
Expand Down Expand Up @@ -1794,7 +1794,7 @@
}

// Notify observer of change
observer.notify(base, val);
observer.notify(base);

// Queue a build
queueBuild(this);
Expand Down
2 changes: 1 addition & 1 deletion dist/moon.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/instance/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Moon.prototype.set = function(key, val) {
}

// Notify observer of change
observer.notify(base, val);
observer.notify(base);

// Queue a build
queueBuild(this);
Expand Down
2 changes: 1 addition & 1 deletion src/observer/observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Observer.prototype.observe = function(key) {
}
}

Observer.prototype.notify = function(key, val) {
Observer.prototype.notify = function(key) {
const self = this;

let depMap = null;
Expand Down

0 comments on commit 704f385

Please sign in to comment.