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

提高getLocation函数的ie8兼容性 #344

Merged
merged 2 commits into from
Oct 4, 2018
Merged

提高getLocation函数的ie8兼容性 #344

merged 2 commits into from
Oct 4, 2018

Conversation

ambit-tsai
Copy link
Contributor

getLocation函数内容转义后为return Object.assign({}, source.location, {/*略*/});
当使用babel-polyfill提供Object.assign语法支持时,会报错:Object.prototype.propertyIsEnumerable: 'this' 不是 JavaScript 对象
使用for循环替换Object.assign进行属性复制。

getLocation函数内容转义后为`return Object.assign({}, source.location, {/*略*/});`。
当使用babel-polyfill提供Object.assign语法支持时,会报错:`Object.prototype.propertyIsEnumerable: 'this' 不是 JavaScript 对象`。
使用for循环替换Object.assign进行属性复制。
判断条件写反了,去掉`!`
@RubyLouvre RubyLouvre merged commit 04adba1 into RubyLouvre:master Oct 4, 2018
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.

2 participants