myApp.myComponent = function (container, options) {
var that = fluid.initView("myApp.myComponent", container, options);
...
fluid.initDependents(that);
...
return that;
};
fluid.defaults("myApp.myComponent", {
components: {
sub1: {
type: "myApp.mySubcomponent1"
},
sub2: {
type: "myApp.mySubcomponent2"
}
}
});
|