#8950 closed task (fixed)
ComboBox: should cancel unwanted queries
Reported by: | bill | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Dijit - Form | Version: | 1.3.0b3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
ComboBox should cancel queries that are going to be ignored.
For example, if the user types "C" (which triggers a query), and then types another letter "o" before the first query has finished, then the first query should be canceled (ie, call abort() on the handle returned from dojo.store.fetch()), rather than waiting for the result to be returned and ignoring it.
Should also call abort() when ComboBox is being destroyed.
This will be more efficient than current implementation for some data stores, at least in theory.
Change History (7)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Milestone: | tbd → 1.4 |
---|---|
Owner: | set to Douglas Hays |
cancel/abort API implemented in #8315
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 13 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Hi, sorry to reopen this but we also need to abort the request if ComboBox is being destroyed, right? It's probably unlikely that ComboBox is destroyed in the middle of a data store query but might as well handle that case.
comment:5 Changed 13 years ago by
comment:6 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:7 Changed 11 years ago by
Component: | Dijit → Dijit - Form |
---|
Once implemented, this can be tested using SlowStore?.js in tests/_data.... it will log the cancel requests.