Skip to content

Instantly share code, notes, and snippets.

@AndrewHenderson
Created November 14, 2015 00:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AndrewHenderson/192aa46793609ee9d1ee to your computer and use it in GitHub Desktop.
{
eventStream: {
modelChange: function(stream) {
stream.filter(function(val){
return val.model.name == 'receiptModel'
})
.filter(function(val){
return val == val.model.isNew();
})
.onValue(onNewReceipt);
}
}
events: {
'change'; 'onMyModelChnage'
}
}
onMyModelChnage: function() {
}
function onNewReceipt(value){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment