PDA

View Full Version : Should Ext.chart.Chart use inheritableStatics instead of statics?



grgur
28 May 2014, 6:08 AM
Extending Ext.chart.Chart will not work without copying statics. Should the statics below become inheritableStatics instead?


Ext.define('Ext.chart.Chart', {
extend: 'Ext.chart.AbstractChart',
xtype: 'chart',

requires: [
'Ext.chart.CartesianChart',
'Ext.chart.PolarChart'
],

statics: {
chartTypes: {
cartesian: 'cartesian',
polar: 'polar',
generic: 'generic',

all: 'chart, cartesian, polar, generic' // Can be used as selector in Ext.ComponentQuery.query()
}
},

Let me know If this report needs clarification.

Thanks!!

mitchellsimoens
28 May 2014, 10:23 AM
Ext.chart.Chart will not be in the next release. Should use CartesianChart or PolarChart instead.