Sha256: a224ce0d58cd9c436bf46e69545a2e3b1f00355bbb4a39904a95cce616ade2f2
Contents?: true
Size: 536 Bytes
Versions: 8
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
8 entries across 8 versions & 1 rubygems