Skip to content

Commit

Permalink
fix(index.es6): avoid use of Object.assign for IE (#2908)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouss authored and bobylito committed Apr 26, 2018
1 parent 925789a commit 228b02e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import version from './lib/version.js';

// import instantsearch from 'instantsearch.js';
// -> provides instantsearch object without connectors and widgets
const instantSearchFactory = Object.assign(toFactory(InstantSearch), {
version,
createQueryString: algoliasearchHelper.url.getQueryStringFromState,
});
const instantSearchFactory = toFactory(InstantSearch);

instantSearchFactory.version = version;
instantSearchFactory.createQueryString =
algoliasearchHelper.url.getQueryStringFromState;

Object.defineProperty(instantSearchFactory, 'widgets', {
get() {
Expand Down

0 comments on commit 228b02e

Please sign in to comment.