Compare commits
1 Commits
f4c6eef2cd
...
7c8b4a3b87
Author | SHA1 | Date |
---|---|---|
Tissevert | 7c8b4a3b87 |
|
@ -15,7 +15,7 @@ Box.prototype.set = function(newValue) {
|
|||
}.bind(this);
|
||||
};
|
||||
|
||||
Box.prototype.use = function(f) {
|
||||
Box.prototype.bind = function(f) {
|
||||
return function(g) {
|
||||
f(this.value)(g);
|
||||
}.bind(this);
|
||||
|
@ -36,7 +36,7 @@ function make(initValue) {
|
|||
return {
|
||||
get: box.get.bind(box),
|
||||
set: box.set.bind(box),
|
||||
use: box.use.bind(box),
|
||||
bind: box.bind.bind(box),
|
||||
update: box.update.bind(box),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue