t11e/simplicity — pull request #26 by bikeath1337 (2012-08-11 15:56:00+00:00)
Title: widgets-105 -- CORS

Enhances simplicityDiscoverySearch to support CORS direct engine requests.

Enhances simplicitySearchResults to support passing a formatting callback function to render
the HTML client side.

Enhances tutorial page to include a Google maps demo using CORS and a remote engine

simplicityDiscoverySearch:
- Unifies search controller, CORS, JSONP support.
- Introduces option "backend": controller | engine
- Renames controller event to "simplicitySearchRequest", was "simplicitySearchQuery"
- simplicitySearchRequest triggered for all backend types
- maintains "query" method as wrapper to be used by admin tools

simplicitySearchResults
- unifies handling for remote and JS results
- adds errorCallback option
- improves error handling
-- changes method signature for JS resultsCallback to include this.element