14 lines
270 B
JavaScript
14 lines
270 B
JavaScript
|
define(function (require) {
|
||
|
//Important, notice the space between require and arg calls
|
||
|
var b = require ('b');
|
||
|
|
||
|
return (a = {
|
||
|
name: 'a',
|
||
|
b: b,
|
||
|
ids: [],
|
||
|
add: function (id) {
|
||
|
this.ids.push(id);
|
||
|
}
|
||
|
});
|
||
|
});
|