We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
这一行代码:https://github.com/ecomfe/er/blob/master/src/Model.js#L203 ,在支持 Object.create 的浏览器中会使用 Object.create,但是 Object.create(datasource) 会把 datasource 放到创建出来的新 Object 的 proto 上面去,所以效果并不等价于 u.clone ,如下截图:
后续再遇到 u.deepClone 之类的就崩溃了。
The text was updated successfully, but these errors were encountered:
修复使用Object.create引起的兼容性问题
d6c0c9d
Fix #173
No branches or pull requests
这一行代码:https://github.com/ecomfe/er/blob/master/src/Model.js#L203 ,在支持 Object.create 的浏览器中会使用 Object.create,但是 Object.create(datasource) 会把 datasource 放到创建出来的新 Object 的 proto 上面去,所以效果并不等价于 u.clone ,如下截图:
后续再遇到 u.deepClone 之类的就崩溃了。
The text was updated successfully, but these errors were encountered: