Sha256: a6471685ec1c03a46ebe41ef9dea05e8cdca4253c2c2bafac602fab213cb480e
Contents?: true
Size: 536 Bytes
Versions: 19
Compression:
Stored size: 536 Bytes
Contents
pageflow.retryable = { retry: function(options) { options = options ? _.clone(options) : {}; if (options.parse === void 0) options.parse = true; var model = this; options.success = function(resp) { if (!model.set(model.parse(resp, options), options)) return false; model.trigger('sync', model, resp, options); }; options.error = function(resp) { model.trigger('error', model, resp, options); }; options.url = this.url() + '/retry'; return this.sync('post', this, options); } };
Version data entries
19 entries across 19 versions & 1 rubygems