View Full Version : Override override Ext.lib.Dom

1 Nov 2010, 8:19 AM

I am trying to override method getXY from Ext.lib.Dom, but I can't figure out what I do wrong.
If I try to override something from Ext.Element everything works OK.

Can somebody please give me a hint of what I'm doing wrong?

Thank you

1 Nov 2010, 8:23 AM
Can I ask why you want to override Ext.lib.Dom.getXY?

Ext.lib.Dom isn't a class, it's a singleton, so you need to use Ext.apply instead of Ext.override.

1 Nov 2010, 8:25 AM
Thank you. You are right and I read this a 100 times. I use ext 3.1.1 andd this method has a bug in IE7.