MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / wrapError

Function wrapError

static/bower_components/backbone/backbone.js:1598–1604  ·  view source on GitHub ↗
(model, options)

Source from the content-addressed store, hash-verified

1596
1597 // Wrap an optional error callback with a fallback error event.
1598 var wrapError = function(model, options) {
1599 var error = options.error;
1600 options.error = function(resp) {
1601 if (error) error(model, resp, options);
1602 model.trigger('error', model, resp, options);
1603 };
1604 };
1605
1606 return Backbone;
1607

Callers 1

backbone.jsFile · 0.85

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected