[Dojo-checkins] kzyp - r18301 - dojox/trunk/data
dojo-checkins-admin at dojotoolkit.org
dojo-checkins-admin at dojotoolkit.org
Mon Jun 22 18:02:51 EDT 2009
Author: kzyp
Date: Mon Jun 22 15:02:49 2009
New Revision: 18301
Modified:
dojox/trunk/data/ClientFilter.js
Log:
Fixes calculation of total count in ClientFilter
Modified: dojox/trunk/data/ClientFilter.js
==============================================================================
--- dojox/trunk/data/ClientFilter.js (original)
+++ dojox/trunk/data/ClientFilter.js Mon Jun 22 15:02:49 2009
@@ -99,6 +99,7 @@
// do the sort if needed
resultSet.sort(this.makeComparator(request.sort.concat()));
}
+ resultSet._fullLength = resultSet.length;
if(request.count && updated){
// do we really need to do this?
// make sure we still find within the defined paging set
@@ -193,6 +194,7 @@
args._version = typeof args._version == "number" ? args._version : version;
self.updateResultSet(results,args);
args.cacheResults = results;
+ defResult.fullLength = results.length;
}
return results;
});
@@ -251,7 +253,7 @@
var value = this.getValue(item,i);
if((typeof match == 'string' && (match.match(/[\*\.]/) || ignoreCase)) ?
!dojo.data.util.filter.patternToRegExp(match, ignoreCase).test(value) :
- value != match){
+ value != match){
return false;
}
}
More information about the Dojo-checkins
mailing list