mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Don't use Object.prototypes builtins directly
See: https://eslint.org/docs/rules/no-prototype-builtins
This commit is contained in:
@@ -778,7 +778,7 @@ window.qBittorrent.DynamicTable = (function() {
|
||||
|
||||
const tds = tr.getElements('td');
|
||||
for (let i = 0; i < this.columns.length; ++i) {
|
||||
if (data.hasOwnProperty(this.columns[i].dataProperties[0]))
|
||||
if (Object.prototype.hasOwnProperty.call(data, this.columns[i].dataProperties[0]))
|
||||
this.columns[i].updateTd(tds[i], row);
|
||||
}
|
||||
row['data'] = {};
|
||||
@@ -2058,7 +2058,7 @@ window.qBittorrent.DynamicTable = (function() {
|
||||
|
||||
const tds = tr.getElements('td');
|
||||
for (let i = 0; i < this.columns.length; ++i) {
|
||||
if (data.hasOwnProperty(this.columns[i].dataProperties[0]))
|
||||
if (Object.prototype.hasOwnProperty.call(data, this.columns[i].dataProperties[0]))
|
||||
this.columns[i].updateTd(tds[i], row);
|
||||
}
|
||||
row['data'] = {};
|
||||
@@ -2203,7 +2203,7 @@ window.qBittorrent.DynamicTable = (function() {
|
||||
|
||||
const tds = tr.getElements('td');
|
||||
for (let i = 0; i < this.columns.length; ++i) {
|
||||
if (data.hasOwnProperty(this.columns[i].dataProperties[0]))
|
||||
if (Object.prototype.hasOwnProperty.call(data, this.columns[i].dataProperties[0]))
|
||||
this.columns[i].updateTd(tds[i], row);
|
||||
}
|
||||
row['data'] = {};
|
||||
@@ -2484,7 +2484,7 @@ window.qBittorrent.DynamicTable = (function() {
|
||||
|
||||
const tds = tr.getElements('td');
|
||||
for (let i = 0; i < this.columns.length; ++i) {
|
||||
if (data.hasOwnProperty(this.columns[i].dataProperties[0]))
|
||||
if (Object.prototype.hasOwnProperty.call(data, this.columns[i].dataProperties[0]))
|
||||
this.columns[i].updateTd(tds[i], row);
|
||||
}
|
||||
row['data'] = {};
|
||||
|
||||
Reference in New Issue
Block a user