46e44a0982cea3a5d783c1446f22e09eebcf8db9 |
|
09-Feb-2012 |
Ryan Grove <ryan@wonko.com> |
Reformat autocomplete's API docs. |
e58e329a62c99b6967a791762117392e5af609de |
|
18-Jan-2012 |
Ryan Grove <ryan@wonko.com> |
Add an `enableCache` attribute to AutoComplete.
Set this to false if you want to disable caching in built-in result
sources. |
67dad868b77ee156c32e10f4723686bcece665f2 |
|
10-Oct-2011 |
Ryan Grove <ryan@wonko.com> |
Make requestTemplate available to YQL sources as {request}. [Fixes #2531285] |
4397b5a5bcaf8a291905306dbcc7f2b0fd2e60ee |
|
22-Jul-2011 |
Ryan Grove <ryan@wonko.com> |
`this` should be the AutoComplete instance in requestTemplate functions.
Includes a bonus fix for an issue that caused the requestTemplate
function to be called twice instead of just once for XHR requests. |
5a4101d1588aeaa47800089117efda9d013a6845 |
|
15-Jul-2011 |
Ryan Grove <ryan@wonko.com> |
Use expanded request string as cache key instead of just the query. [Fixes #2530410]
This ensures that the cache key is based on the entire request
(including any extra data provided by a requestTemplate) rather than
just the query (which may be shared between requests with differing
requestTemplate params). |
ef1ceb334534dfc86c8e2544fa13702e59f67390 |
|
09-Apr-2011 |
Ryan Grove <ryan@wonko.com> |
<select> nodes may now be used as result sources. |
5b968bdd0754c385548517248b8d1e1f51c336ec |
|
08-Apr-2011 |
Ryan Grove <ryan@wonko.com> |
Use a simple Y.mix() for autocomplete-sources instead of Y.Base.mix().
Y.Base.mix() was working, but was actually being used incorrectly in
this case, since the receiver (AutoCompleteBase) doesn't actually extend
Y.Base. It only worked because autocomplete-sources had an empty
constructor, so there were no side effects from the fact that the
constructor was never executed. |
33564f5e9c3bc7de4a50b9e4bcf8287ba2dba8fb |
|
25-Mar-2011 |
Ryan Grove <ryan@wonko.com> |
Add a sourceType attribute, which may be used to force a specific source
type, overriding automatic source type detection. [Ticket #2529974]
This change also makes it possible for new custom source types to be
added at runtime by third-party code in the same way that they're
added by autocomplete-sources, simply by mapping an sourceType name in
Y.AutoCompleteBase.SOURCE_TYPES to a source setter function.
I haven't yet documented this pluggable functionality since I'd like to
let it simmer a bit before setting it in stone. |
dcc025b8477681e766bb1262ac3580d23f7b922b |
|
22-Mar-2011 |
Ryan Grove <ryan@wonko.com> |
Pass the query and the requestTemplate output separately when sending
a request. [Fixes #2529895]
Also fleshed out the unit tests for sendRequest and for the various
autocomplete-sources source types. |
e6016983d612ae53e9a94b9aba969175e8f7ef1d |
|
22-Mar-2011 |
Ryan Grove <ryan@wonko.com> |
Refactor for clarity. |
c99f1bf364dc66a5880b8aa1ec257bd3c70cf0b1 |
|
12-Jan-2011 |
Ryan Grove <ryan@wonko.com> |
Really set allowCache to false this time. |
022a9dd522cf9fc493642b7a74fa115256a9118c |
|
12-Jan-2011 |
Ryan Grove <ryan@wonko.com> |
Disallow YQL caching.
This is a temporary workaround for a problem created by the fact that
JSONP uses a single callback per instance regardless of URL, YQL reuses
a JSONP instance across multiple requests, and AC reuses a YQL instance
across multiple requests. |
73c44794c289d84c62f3fd897a54f49019c99a64 |
|
21-Nov-2010 |
Ryan Grove <ryan@wonko.com> |
Add a yqlEnv config attribute to allow the use of custom environment files with YQL sources. |
174bc2b9feea5dcd41ecb60213d2ce600b5d08bf |
|
16-Nov-2010 |
Ryan Grove <ryan@wonko.com> |
Add support for XHR-based sources without using a DataSource.
Like JSONP sources, XHR sources are specified by setting the source
attribute to a URL. Any URL string with a {callback} placeholder will be
treated as a JSONP source; a URL string without a {callback} placeholder
will be treated as an XHR source. |
0a33c81444b4733a2ca07b957b89f7a0ad29ef80 |
|
16-Nov-2010 |
Ryan Grove <ryan@wonko.com> |
Move code for JSONP and YQL sources into a separate autocomplete-sources module.
The autocomplete-sources module is included in the autocomplete rollup,
but is no longer part of autocomplete-base, which results in a smaller
base module when the extra sources aren't needed. |