40 lines
788 B
JavaScript
40 lines
788 B
JavaScript
define('one', function () {
|
|
return { name: 'one' };
|
|
});
|
|
|
|
define('two', function () {
|
|
return { name: 'two' };
|
|
});
|
|
|
|
define('three', ['one'], function (one) {
|
|
return { name: 'three',
|
|
one: one
|
|
};
|
|
});
|
|
|
|
require([], function() {
|
|
require({
|
|
map : {
|
|
'*': {
|
|
'one': 'two'
|
|
}
|
|
}
|
|
},
|
|
['three'],
|
|
function (three) {
|
|
doh.register(
|
|
'mapConfigDelayed',
|
|
[
|
|
function mapConfigDelayed(t){
|
|
t.is('three', three.name);
|
|
t.is('two', three.one.name);
|
|
}
|
|
]
|
|
);
|
|
doh.run();
|
|
}
|
|
);
|
|
});
|
|
|
|
define("app", function(){});
|