MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / wrapError

Function wrapError

public/javascripts/backbone.js:1563–1569  ·  view source on GitHub ↗
(model, options)

Source from the content-addressed store, hash-verified

1561
1562 // Wrap an optional error callback with a fallback error event.
1563 var wrapError = function (model, options) {
1564 var error = options.error;
1565 options.error = function(resp) {
1566 if (error) error(model, resp, options);
1567 model.trigger('error', model, resp, options);
1568 };
1569 };
1570
1571}).call(this);

Callers 1

backbone.jsFile · 0.70

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected