Created
February 23, 2014 08:58
-
-
Save jimmydivvy/9168930 to your computer and use it in GitHub Desktop.
Bacon.Model bug?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bob = Bacon.Model({ | |
name: "Bob", | |
age: 30 | |
}); | |
console.log( bob.lens("name").get() ); // "Bob" as expected | |
Bacon.constant(1).onValue(function(){ | |
console.log( bob.lens("name").get() ); // Undefined | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment