-
14 Nov 2012 1:31 AM #1Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 52
[4.1.x] fadeOut, fadeIn, etc not safe to use with flyweights
[4.1.x] fadeOut, fadeIn, etc not safe to use with flyweights
These methods should not save reference to 'this', since that prevents doing
If this is intended (hopefully it's not), docs should state this. You get very bizarre and hard to debug errors from this, as some random element on the page will just disappear (when fadeOut is complete).Code:Ext.fly(someNode).fadeOut();
Code:fadeOut: function(o) { var me = this; o = Ext.apply({ opacity: 0, internalListeners: { afteranimate: function(anim){ var dom = me.dom; if (dom && anim.to.opacity === 0) { if (o.useDisplay) { me.setDisplayed(false); } else { me.hide(); } } } } }, o); me.animate(o); return me; },
-
14 Nov 2012 6:30 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Hey, thanks 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.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-7756
in
4.2.0 Sprint 2.


Reply With Quote