Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(getTag): use object version of toString #3820

Merged
merged 1 commit into from May 27, 2019
Merged

fix(getTag): use object version of toString #3820

merged 1 commit into from May 27, 2019

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented May 27, 2019

IE11: global toString can not be called as Object.prototype.toString, so we need to use the Object version, like done in lodash (not doing this initially was likely a simple omission)

fixes #3814

references:

Screenshot 2019-05-27 at 17 23 43

Screenshot 2019-05-27 at 15 49 22

IE11: global `toString` can not be called as `Object.prototype.toString`, so we need to use the Object version, like done in lodash (not doing this initially was likely a simple omission)
@Haroenv Haroenv requested review from francoischalifour and a team May 27, 2019 15:27
@ghost ghost requested review from tkrugg and removed request for a team May 27, 2019 15:27
@algobot
Copy link
Contributor

algobot commented May 27, 2019

Deploy preview for instantsearchjs ready!

Built with commit 3c6c3f0

https://deploy-preview-3820--instantsearchjs.netlify.com

Copy link
Contributor

@samouss samouss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it the only place where we call toString with this form?

@Haroenv
Copy link
Contributor Author

Haroenv commented May 27, 2019

other versions of toString were not the global call, but directly called on an object / string @samouss

@Haroenv Haroenv merged commit a7348ea into develop May 27, 2019
@Haroenv Haroenv deleted the fix/get-tag branch May 27, 2019 15:52
Haroenv added a commit that referenced this pull request May 28, 2019
* **getTag:** ([#3820](#3820)) ([a7348ea](a7348ea))
* **types:** fix cssClasses of voiceSearch ([#3783](#3783)) ([f016326](f016326))
Haroenv added a commit that referenced this pull request May 28, 2019
## [3.5.3](v3.5.2...v3.5.3) (2019-05-28)

### Bug Fixes
* **voiceSearch:** let the connector handle the default value of searchAsYouSpeak when it's not given ([#3817](#3817)) ([9d3e91b](9d3e91b))
* **getTag:** use object version of toString ([#3820](#3820)) ([a7348ea](a7348ea))
* **types:** fix cssClasses of voiceSearch ([#3783](#3783)) ([f016326](f016326))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calling toString on random objects can cause errors in IE
4 participants