edchat/dojox_mvc — pull request #69 by asudoh (2012-12-10 21:26:59+00:00)
Title: Support for callback-based childType, childMixins, etc.

Support for callback-based `childType`, `childMixins`, `childParams` and `childBindings`. This allows to create more flexible creation of child widgets from array (`StatefulArray`).

One typical usage is menu. The WidgetList enhancement allows to automatically create menu from data, where the `childType` and `childParams` would be:

```javascript
function childType(parent){
return this.isSeparator ? "dijit/MenuSeparator" :
this.checked !== void 0 ? "dijit/CheckedMenuItem" :
parent._isMenuBar ? "dijit/MenuBarItem" :
"dijit/MenuItem";
}

function childParams(){
return {"*": at(this.target, "*")};
}
```

Newly added test case, test_mvc_Menu.html demonstrates every menu item of dijit/tests/test_Menu.html can be created automatically from data, with just a minor enhancement to dijit/PopupMenuItem (implemented as a mixin).