Compare commits

..

1 Commits

1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ Box.prototype.set = function(newValue) {
}.bind(this); }.bind(this);
}; };
Box.prototype.use = function(f) { Box.prototype.bind = function(f) {
return function(g) { return function(g) {
f(this.value)(g); f(this.value)(g);
}.bind(this); }.bind(this);
@ -36,7 +36,7 @@ function make(initValue) {
return { return {
get: box.get.bind(box), get: box.get.bind(box),
set: box.set.bind(box), set: box.set.bind(box),
use: box.use.bind(box), bind: box.bind.bind(box),
update: box.update.bind(box), update: box.update.bind(box),
}; };
} }