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

Error: Do not access Object.prototype method #138

Closed
fairking opened this issue Jan 10, 2020 · 1 comment
Closed

Error: Do not access Object.prototype method #138

fairking opened this issue Jan 10, 2020 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@fairking
Copy link

fairking commented Jan 10, 2020

if I include PrimeVue components right into my project the compiler shows the following errors in DataTable.vue and TreeTable.vue:

Do not access Object.prototype method 'hasOwnProperty' from target object

It references the error to the following eslint rule https://eslint.org/docs/rules/no-prototype-builtins

If I replace the lines this.filters.hasOwnProperty(xxx) with Object.prototype.hasOwnProperty.call(this.filters, xxx) the error goes away.

@cagataycivici cagataycivici self-assigned this Jan 11, 2020
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 11, 2020
@cagataycivici cagataycivici added this to the 1.0.0-rc.7 milestone Jan 11, 2020
@cagataycivici
Copy link
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants