File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1- // required for browsers not supporting this (helper requirement)
1+ // required for browsers not supporting Object.freeze (helper requirement)
22import '../shams/Object.freeze.js' ;
3+
4+ // required for IE <= 10 since move to babel6
5+ import '../shims/Object.getPrototypeOf.js' ;
6+
37import toFactory from 'to-factory' ;
48import InstantSearch from './InstantSearch.js' ;
59import algoliasearchHelper from 'algoliasearch-helper' ;
Original file line number Diff line number Diff line change 1+ /* eslint-disable */
2+
3+ // FIX IE <= 10 babel6:
4+ // - https://phabricator.babeljs.io/T3041
5+ // - https://phabricator.babeljs.io/T3041#70671
6+ var testObject = { } ;
7+
8+ if ( ! ( Object . setPrototypeOf || testObject . __proto__ ) ) {
9+ var nativeGetPrototypeOf = Object . getPrototypeOf ;
10+
11+ Object . getPrototypeOf = function ( object ) {
12+ if ( object . __proto__ ) {
13+ return object . __proto__ ;
14+ } else {
15+ return nativeGetPrototypeOf . call ( Object , object ) ;
16+ }
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments