Changeset 11979

Show
Ignore:
Timestamp:
01/09/08 10:06:50 (12 months ago)
Author:
doughays
Message:

Fixes #5544. Fake dojo.query datastore did not set the store member of the dataObject returned

from fetch and did not work in IE6 at all since innerText returned causing ' textContent'
to be executed which returned undefined.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/ComboBox.js

    r11973 r11979  
    571571                                        deep: true 
    572572                                }, 
     573                                store: this.store, 
    573574                                query: query, 
    574575                                onComplete: dojo.hitch(this, "_openResultList"),  
     
    997998                                                /* attribute-name-string */ attribute,  
    998999                                                /* value? */ defaultValue){ 
    999                 return (attribute == "value") ? item.value : (item.innerText || item.textContent); 
     1000                return (attribute == "value") ? item.value : (item.innerText || item.textContent || ''); 
    10001001        }, 
    10011002 
     
    10221023                        matcher = new RegExp(query, args.queryOptions.ignoreCase ? "i" : ""), 
    10231024                        items = dojo.query("> option", this.root).filter(function(option){ 
    1024                                 return (option.innerText || option.textContent).match(matcher); 
     1025                                return (option.innerText || option.textContent || '').match(matcher); 
    10251026                        } ); 
    10261027