mitchellsimoens/Ext.ux.touch.grid — Issue #3: Can't create multiple instances using xtype, when using features
Author: jacobweber
Created: 2012-02-27 20:55:39+00:00
State: open

I'm defining a grid with the "touchgridpanel" xtype, using the Sorter feature. For example:

```javascript
Ext.define('MyGrid', {
extend: 'Ext.Container',
config: {
items: {
xtype: 'touchgridpanel',
features : [{
ftype : 'Ext.ux.touch.grid.feature.Sorter',
launchFn : 'initialize'
}],
...
```

Then I try to create two instances of it:

```javascript
Ext.create('MyGrid', {});
Ext.create('MyGrid', {});
```

But I get an error when creating the second one: "[Ext.create] Invalid class name or alias 'undefined' specified, must be a non-empty string".

This seems to be because of Ext.ux.touch.grid.feature.Feature line 29: "delete cfg.ftype". I'm not sure you should be deleting config values like this, since they seem to be reused across multiple instances.

If I delete that line, it works.