drshelper
2 Jul 2010, 10:34 AM
I was having a problem with addSorted to add a record to a grouping store where the sort field (not the group field) was a date. I stepped through the code and found that asDate in ext-all.js (3.2.1) starts with this code:
asDate : function(s) {
if(!s){
return 0;
}
and that since s is aa Date it was always returning 0. It seems to me that code was looking for a null or somesuch calue and that this should be:
asDate : function(s) {
if( s == null)
return 0;
and when I made this change the addSorted starting working. Is this a bug or am I misunderstanding something.
Thanks in advance.
asDate : function(s) {
if(!s){
return 0;
}
and that since s is aa Date it was always returning 0. It seems to me that code was looking for a null or somesuch calue and that this should be:
asDate : function(s) {
if( s == null)
return 0;
and when I made this change the addSorted starting working. Is this a bug or am I misunderstanding something.
Thanks in advance.