View Full Version : Ext.menu.Menu help?

7 Apr 2010, 9:00 AM
Hi all,
it sounds a little bit incredible to me too but, the following line:

var m = new Ext.menu.Menu({
id: "mymenu",

written alone in file that do nothing but this, produces the following error on Chrome:
Uncaught TypeError: Object #<an Object> has no method 'addEventListener on extjs/adapter/ext/ext-base-debug.js:2078
and both on FF and IE8 does the same.
I've also tried to simply do:

var m = new Ext.menu.Menu({ id: "mymenu" });

var m = new Ext.menu.Menu();

I've tried to copy and paste the examples of the ExtJS demo (the one found here http://www.extjs.com/deploy/dev/examples/toolbar/toolbars.js) but the error is the same.
Why?Someone had any ideas?Where I'm wrong?
Thanks to all.