()
| 449 | |
| 450 | // then save |
| 451 | function save() { |
| 452 | inst.trigger('save', function(saveDone) { |
| 453 | inst.trigger('update', function(updateDone) { |
| 454 | Model.upsert(inst, function(err) { |
| 455 | inst._initProperties(data); |
| 456 | updateDone.call(inst, function() { |
| 457 | saveDone.call(inst, function() { |
| 458 | callback(err, inst); |
| 459 | }); |
| 460 | }); |
| 461 | }); |
| 462 | }, data); |
| 463 | }, data); |
| 464 | } |
| 465 | }; |
| 466 | |
| 467 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…