-
14 Dec 2011 4:58 AM #1
List doItemDselect
List doItemDselect
onItemDeselect: function(record, suppressEvent) {
var me = this;
if (suppressEvent) {
me.doItemDeSelect(me, record);
Last line should be doItemDeselect (note the spelling). For this reason List.deselect fails.
This is in PR3
-
14 Dec 2011 7:01 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Test case?
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 Dec 2011 7:27 AM #3
Test case
Test case
Sorry for not providing test cases for these bugs, but I am currently on a very tight schedule here and don;t have much time to build them.
It this case I thought it'll be pretty obvious as the method in DataView.js is:
doItemDeselect: function(me, record) {
var item = Ext.get(me.getViewItems()[me.getStore().indexOf(record)]);
if (item) {
item.removeCls([me.getPressedCls(), me.getSelectedCls()]);
}
},
which has a different spelling. The method just above that one calls this one : me.doItemDeSelect(me, record);
Best regards,
Robert
-
14 Dec 2011 7:33 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
I see...
The second one should be doItemDeSelect... gotcha!Code:// invoked by the selection model to maintain visual UI cues onItemDeselect: function(record, suppressEvent) { var me = this; if (suppressEvent) { me.doItemDeSelect(me, record); } else { me.fireAction('deselect', [me, record, suppressEvent], 'doItemDeselect'); } }, doItemDeselect: function(me, record) { var item = Ext.get(me.getViewItems()[me.getStore().indexOf(record)]); if (item) { item.removeCls([me.getPressedCls(), me.getSelectedCls()]); } },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 Dec 2011 7:34 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Sorry... I noted the spelling but not the case
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 Dec 2011 7:50 AM #6
No worries, my english is not the most expressive form of communication ever

Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1263
in
2.0.


Reply With Quote