0
ここ
はjavascript
機能です:キャッチされていない不正なアクセスながら
注:resultArray
は、私はライン上で私が作ったvar resultArray = [];
onAddElement : function (win,id,resultArray) {
var controller = this;
if(!win.flag){
Ext.MessageBox.show({
title: 'Yes or No',
icon: Ext.MessageBox.QUESTION,
msg: 'Do you want to continue?',
buttonText: {yes:'YES', no:'NO', cancel:'CANCEL',
fn: function (me) {
if(me === 'yes'){
ver = win.curVer;
resultArray.push({
id: id,
ver: ver
});
controller.anotherFunc(win,id);
}else if(me === 'no'){
ver = win.ver;
resultArray.push({
id: id,
ver: ver
});
controller.anotherFunc(win,id);
}
}
});
}else{
ver = win.ver;
resultArray.push({ //getting uncaught illegal access
id: id,
ver: ver
});
controller.anotherFunc(win,id);
}
}
コメントとして呼び出し元の関数で定義されていますuncaught illegal access
エラーが発生しました。私はそれの根本的な原因を見つけることができません。