web-apps/vendor/requirejs/tests/error/plug.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

12 lines
275 B
JavaScript

define({
load: function (id, require, load, config) {
'use strict';
if (id === 'broken') {
var err = new Error('broken');
err.plugMessage = id;
load.error(err);
} else {
load(id);
}
}
});