Этот провод подключен.Extjs 3.3 Привязанные события IE8 ломаются
Это срабатывает от кнопки сетки панели инструментов нажмите:
// fires when the client hits the add attachment button.
onAddAttachmentClick: function() {
var uploadAttachmentsWindow = new Nipendo.ProformaInvoice.Attachment.UploadWindow({
invoice: this.invoice,
maxFileSizeInMB: this.maxFileSizeInMB
});
uploadAttachmentsWindow.on('uploadcomplete', function (win, message) {
if (message.msg !== 'success') {
return;
}
win.close();
var store = this.getStore();
store.setBaseParam('useCache', false);
store.load();
this.fireEvent(
'attachmentuploaded',
this.invoice.ProformaInvoiceNumber,
this.invoice.VendorSiteID,
this.invoice.CustomerSiteID);
}, this);
uploadAttachmentsWindow.show();
} // eo onAddAttachmentClick
Это то, что происходит на uploadcomplete событие:
this.uploadBtn.on('click', function() {
var form = this.uploadForm.getForm();
if (!form.isValid()) {
return;
}
form.submit({
url: 'XXX.ashx',
waitMsg: Nipendo.Localization.UploadingAttachment,
scope: this,
success: function (form, action) {
this.fireEvent('uploadcomplete', this, {
msg: 'success',
response: action.response
});
},
failure: function (form, action) {
switch (action.failureType) {
case Ext.form.Action.CLIENT_INVALID:
this.fireEvent('uploadcomplete', this, {
msg: 'Form fields may not be submitted with invalid values'
});
break;
case Ext.form.Action.CONNECT_FAILURE:
this.fireEvent('uploadcomplete', this, {
msg: 'Ajax communication failed'
});
break;
case Ext.form.Action.SERVER_INVALID:
Ext.Msg.alert(action.result.title, action.result.message);
this.fireEvent('uploadcomplete', this, {
msg: action.result.message
});
break;
}
}
});
}, this);
В IE 8 я получаю эту ошибку в отладчике:
Я не знаю, какой объект является неправильным петь ... из моего чека все они определены.
Любая идея кого-нибудь?
Обратите внимание, что у меня есть событие, возбуждающее слушателя (я подозреваю, что это корень проблемы).
Трудно видеть, но ошибка в ext-all.js в методе огня.
У вас есть живой прогноз? – antyrat
Нет, я не ... Я могу предоставить больше кода при необходимости. – AMember