models2.ejs
302 Bytes
project.save(function() {
// my nice callback stuff
})
task.save(function() {
// some other stuff
})
new Task({ title: 'foo', description: 'bar', deadline: new Date()})
.save(function(anotherTask) {
// you can now access the currently saved task with the variable <i>anotherTask</i>... nice!
})