Skip to content

Commit

Permalink
fix: use Object.prototype.hasOwnProperty (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Aug 2, 2021
1 parent 98c9a8f commit b8302b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picker/PickerElement.js
Expand Up @@ -35,7 +35,7 @@ export default class PickerElement extends HTMLElement {
}
// Handle properties set before the element was upgraded
for (const prop of PROPS) {
if (prop !== 'database' && Object.hasOwnProperty.call(this, prop)) {
if (prop !== 'database' && Object.prototype.hasOwnProperty.call(this, prop)) {
this._ctx[prop] = this[prop]
delete this[prop]
}
Expand Down

0 comments on commit b8302b2

Please sign in to comment.