-
26 Oct 2012 1:40 AM #1Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,454
- Vote Rating
- 48
Ext.get contract broken
Ext.get contract broken
The contract of Ext.get is to 'get' an element from the DOM. Seems broken to me:
Cache is not busted as I overwrite some element. Docs say this should work.Code:Ext.getBody().setHtml('<div id="foo">CRAP</div>'); console.log(Ext.get('foo').dom.innerHTML); >>"CRAP" Ext.getBody().setHtml('<div id="foo">AWESOME</div>'); console.log(Ext.get('foo').dom.innerHTML) // >> "CRAP"
http://docs.sencha.com/touch/2-0/#!/api/Ext-method-get
Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with the same id via AJAX or DOM.
-
26 Oct 2012 7:43 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Thanks for the report! I have opened a bug in our bug tracker.
-
2 Nov 2012 9:32 AM #3
-
11 Dec 2012 4:35 AM #4
-
11 Dec 2012 6:27 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
This bug report is still open. Has not been worked on yet.
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.
-
21 Mar 2013 10:03 PM #6
-
16 Apr 2013 11:38 AM #7Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,454
- Vote Rating
- 48
Coming up on 6 months for this, can we please just get it fixed? Still broken in 2.2. Ext.get just _has_ to work according to docs, imagine if in jQuery you could not trust
I think that's kind of a critical one.Code:$('.foo')
You found a bug! We've classified it as
TOUCH-3629
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote