Sha256: fdfc4887b679542217108409955d9d57f3c30fe48dc5a444c911a847485467b6
Contents?: true
Size: 436 Bytes
Versions: 8
Compression:
Stored size: 436 Bytes
Contents
pageflow.FailedRecordsCollection = pageflow.MultiCollection.extend({ watch: function(collection) { this.listenTo(collection, 'sync', this.remove); this.listenTo(collection, 'error', function(model) { if (!model.isNew()) { this.add(model); } }); }, retry: function() { _.chain(this.records).values().each(function(record) { this.remove(record); record.save(); }, this); } });
Version data entries
8 entries across 8 versions & 1 rubygems