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

Version Path
pageflow-0.11.4 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.11.3 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.11.2 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.11.1 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.11.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.10.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.9.2 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.9.1 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.9.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.8.2 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.8.1 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.8.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.7.2 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.7.1 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.7.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.6.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.5.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.4.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
pageflow-0.3.0 app/assets/javascripts/pageflow/editor/models/mixins/retryable.js