-
19 Nov 2011 7:39 AM #1
Ext.Button.initialize does not invoke initialize on its base class
Ext.Button.initialize does not invoke initialize on its base class
Here's the initialize method from Ext.Button:
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.Code:initialize: function() { this.element.on({ scope : this, tap : 'onTap', touchstart : 'onPress', touchmove : 'onRelease', touchend : 'onRelease' }); },--
Rahul Singla
-
19 Nov 2011 12:44 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
Thank you for the report.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
19 Nov 2011 9:25 PM #3
I believe initialize is an empty function in the base class by default (haven't checked it), so it works...
--
Rahul Singla
-
19 Nov 2011 9:31 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
20 Nov 2011 2:13 AM #5
And that's exactly why I have filed this bug report. I have sequenced initialize method for Component for providing additional features but it did not work with Button and I had to sequence Button's initialize again.
--
Rahul Singla
-
21 Nov 2011 9:35 AM #6Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
This has been fixed for the next release.
-
21 Nov 2011 1:01 PM #7
Thanks.. When can we expect it
--
Rahul Singla
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1061
in
2.0.


Reply With Quote