View Full Version : Problems extending DDProxy

15 Nov 2010, 8:36 AM
Hello, thanks in advance for any help on this.

I'm trying to extend a DDProxy object. I want the invalidHandleTypes object to be blank. It defaults to { A: "A"}.

The following code works:

var StartMenuDDProxy = function(config) {
StartMenuDDProxy.superclass.constructor.apply(this, arguments);

Ext.extend(StartMenuDDProxy, Ext.dd.DDProxy, {
However, this code doesn't:

StartMenuDDProxy = Ext.extend(Ext.dd.DDProxy, {
initComponent: function(){

StartMenuDDProxy.superclass.initComponent.apply(this, arguments);
What is wrong with the second piece of code? I thought it was best to always use initComponent for things like this, but it doesn't seem to work at all in this case.

Thanks in advance for any responses!

17 Feb 2012, 5:22 AM
Came across the same problem just now - it seems that DDProxy doesn't have an initComponent of it's own so calling the superclass initComponent won't do anything.