Compare commits
1 Commits
f4c6eef2cd
...
7c8b4a3b87
Author | SHA1 | Date |
---|---|---|
Tissevert | 7c8b4a3b87 |
|
@ -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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue