12 lines
275 B
JavaScript
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);
|
|
}
|
|
}
|
|
}); |