Skip to content

Instantly share code, notes, and snippets.

@jimmydivvy
Created February 23, 2014 08:58
Show Gist options
  • Save jimmydivvy/9168930 to your computer and use it in GitHub Desktop.
Save jimmydivvy/9168930 to your computer and use it in GitHub Desktop.
Bacon.Model bug?
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