Sha256: f1ee3a6536d34a747cc0e9d1c9f57aee6895518e8eb0a03e17f29f913fe8ab22
Contents?: true
Size: 538 Bytes
Versions: 58
Compression:
Stored size: 538 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('create', this, options); } };
Version data entries
58 entries across 58 versions & 1 rubygems