store.each(function(r){
if(r.data[prop] == value){
record = r;
+ srec = r;
return false;
}
if (r.data.cn && r.data.cn.length) {
selectActive : function ()
{
-
- var stack = [];
- var rec = this.findRecordInStore(this.store, this.hiddenName, this.getValue());
+ // if store is not loaded, then we will need to wait for that to happen first.
+ var stack = [];
+ this.findRecordInStore(this.store, this.hiddenName, this.getValue(), stack);
+
}