[Dojo-checkins] dante - r15134 - dijit/trunk/form

dojo-checkins-admin at dojotoolkit.org dojo-checkins-admin at dojotoolkit.org
Fri Sep 5 01:31:20 UTC 2008


Author: dante
Date: Thu Sep  4 18:31:16 2008
New Revision: 15134

Modified:
   dijit/trunk/form/ComboBox.js
Log:
fixes typeo referencing an undefined dataStore object. All other surrounding references treat it as an object with a .count variable, which inspecting shows it to have. 
fixes #7595 - thanks stekell2 for tracking this down.



Modified: dijit/trunk/form/ComboBox.js
==============================================================================
--- dijit/trunk/form/ComboBox.js	(original)
+++ dijit/trunk/form/ComboBox.js	Thu Sep  4 18:31:16 2008
@@ -791,7 +791,7 @@
 			if(dataObject._maxOptions && dataObject._maxOptions != -1){
 				if((dataObject.start + dataObject.count) < dataObject._maxOptions){
 					displayMore = true;
-				}else if((dataObject.start + dataObject.length) > (dataObject._maxOptions - 1)){
+				}else if((dataObject.start + dataObject.count) > (dataObject._maxOptions - 1)){
 					//Weird return from a datastore, where a start + count > maxOptions
 					//implies maxOptions isn't really valid and we have to go into faking it.
 					//And more or less assume more if count == results.length


More information about the Dojo-checkins mailing list