sencha touch 2.0 を使用してアプリを開発しましたが、アプリを sencha touch 2.2 にアップグレードしました。機能していません。以下に示すように、コンテナ(レイアウト=カード)があります。
Ext.define("InfoImage.view.viewWorkitem.ViewWorkitemView", {
extend:'Ext.Container',
requires:[
'Ext.TitleBar',
'Ext.List'
],
xtype:'workitems',
layout:'card',
cardSwitchAnimation:'slide',
config:{
fullscreen:true,
cls:'hboxpanel',
items:[
{
xtype:'workItemPanel',
flex:3
}
]
} });
workItemPanel は次のとおりです。
Ext.define("InfoImage.view.viewWorkitem.WorkitemPanel", {
extend:'Ext.navigation.View',
requires:[
'Ext.TitleBar',
'Ext.List'
],
xtype:'workItemPanel',
id:'workItemId',
config:{
layout : 'card',
style:'border-radius: 10px;',
navigationBar:{
hidden:'true'
},
items:[ ]
} });
これは sencha tocuh 2.0 では正常に動作していますが、2.2 ではエラーがスローされ、Uncaught TypeError: Object card has no method 'onItemAdd' がスローされます。
sencha touch 2.2 を使用して動作させるには、どのような変更を行う必要がありますか?