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

attr copy bug in ie #19

Closed
lepture opened this issue May 13, 2013 · 1 comment
Closed

attr copy bug in ie #19

lepture opened this issue May 13, 2013 · 1 comment
Labels
Milestone

Comments

@lepture
Copy link
Contributor

lepture commented May 13, 2013

https://github.com/aralejs/base/blob/master/tests/base-spec.js#L793

在 IE 下是 false.

@popomore
Copy link
Member

isPlainObject 的判断问题,这段是复制 jquery,见 bugfix

http://bugs.jquery.com/ticket/12199

对象遍历的时候 ie6~8 是先遍历原型链上再遍历自己,其他浏览器相反

也可以参考下 lodash 的

https://github.com/bestiejs/lodash/blob/7520066fc916e205ef84cb97fbfe630d7c154158/lodash.js#L720-757

popomore added a commit that referenced this issue May 13, 2013
popomore added a commit that referenced this issue May 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants