I am getting this error in Firefox when doing a simple menu to replace contextmenu on a JSONview:
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMMouseEvent.type]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /ext10/ext-all-debug.js :: anonymous :: line 1834" data: no]
Code:
var menu = new Ext.menu.Menu({
id: 'basicMenu',
items: [
new Ext.menu.Item({
text: 'Delete',
handler: deleteHandler
}),
new Ext.menu.Item({
text: 'Another item'
})
]
});
view.on('contextmenu', function(vw, index, node, e) {
e.preventDefault();
var coords = e.getXY();
menu.rowid = node.id;
menu.showAt([coords[0], coords[1]]);
});
function deleteHandler(titem) {
alert('yo');
}
The error seem to occur after you click out of the alert...