r_honey
19 Nov 2011, 7:39 AM
Here's the initialize method from Ext.Button:
initialize: function() { this.element.on({ scope : this, tap : 'onTap', touchstart : 'onPress', touchmove : 'onRelease', touchend : 'onRelease' }); },
Shouldn't it invoke initialize on its base class too so any extensions put on Ext.Component.initialize by "sequencing" it cascade down the the humble button class too.
initialize: function() { this.element.on({ scope : this, tap : 'onTap', touchstart : 'onPress', touchmove : 'onRelease', touchend : 'onRelease' }); },
Shouldn't it invoke initialize on its base class too so any extensions put on Ext.Component.initialize by "sequencing" it cascade down the the humble button class too.