在我的控制器中,我定义了相关的商店,如
stores: [
'devices.DevicesStore',
'devicegroups.DeviceGroupsStore'
],
对于具有“名称空间”(devices.
和devicegroups.
的已定义商店是否有自动生成的getter,如上例所示)?我如何在我的init
函数中获得此商店?
答案 0 :(得分:1)
getter名称由getGetterName
函数生成:
getGetterName: function(name, kindUpper) { var fn = 'get', parts = name.split('.'), numParts = parts.length, index; // Handle namespaced class names. E.g. feed.Add becomes getFeedAddView etc. for (index = 0; index < numParts; index++) { fn += Ext.String.capitalize(parts[index]); } fn += kindUpper; return fn; }