blob: 2cdc0e83bd680b8d0ecd49432e4edb68f75dfc94 [file] [log] [blame]
// Field menu
define(['menu', 'vc/item'], function (menuClass, itemClass) {
return {
create : function (params) {
return Object.create(menuClass)
.upgradeTo(this)
._init(itemClass, undefined, params)
},
released : function (cb) {
this._cb = cb;
},
release : function (name, value, type) {
if (this._cb !== undefined)
this._cb(name, value, type);
}
};
});