-
5 May 2012 4:23 PM #1
Unanswered: Card.js - doItemRemove()
Unanswered: Card.js - doItemRemove()
Could someone explain why item.show() is called within doItemRemove for Card.js. I want to refresh a model object whenever a view is shown but can't because this would cause it to refresh when the view is removed.
Card.js
Code:doItemRemove: function(item, index, destroy) { this.callParent(arguments); if (!destroy && item.isInnerItem()) { item.show(); } },
-
7 May 2012 5:21 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
Browsers tend to not clean things up correctly if an item is hidden when destroyed.
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.
-
27 May 2012 8:23 AM #3
show event triggered
show event triggered
What happens next is that the show event for the item is fired.....which I think is not the intended behavior as the item is being removed.
For me, this happens with a view that is autocreated by a navigation view and then navigated away from.
So it clearly should not be shown.


Reply With Quote