-
14 Nov 2012 7:32 AM #1Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 49
[2.1] Ext.Element.select broken
[2.1] Ext.Element.select broken
Seems Element.select selects globally, very unexpected.
Ext JS gets it right, shows 1:Code:Ext.getBody().setHtml('<div id="mydiv"><img/></div><img/>'); console.log(Ext.get('mydiv').select('img').getCount());
ST 2.1 shows 2.
-
14 Nov 2012 7:42 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,621
- Vote Rating
- 434
For ST 2.1, this works for me:
It gives 1 for the getCount. Had to change the update method to setHtml to be ST2 compliant.Code:Ext.getBody().setHtml('<div id="mydiv"><img/></div><img/>'); console.log(Ext.get('mydiv').select('img').getCount());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.
-
14 Nov 2012 7:48 AM #3Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 49
Screen Shot 2012-11-14 at 4.49.37 PM.jpgNot so fast, try below.
1. http://docs.sencha.com/touch/2-1/tou...ess/index.html
2. Launch test case => logs 2
-
14 Nov 2012 9:19 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,621
- Vote Rating
- 434
I see what the issue is now, the actual root isn't being passed properly and this bug is causing it: http://www.sencha.com/forum/showthread.php?247600
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.
-
14 Nov 2012 9:23 AM #5Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 49
Yup, that seems to be it - now dump this case into your test suite

Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote