Avoid calling Object.prototype methods directly on object instances
This commit is contained in:
@@ -25,7 +25,7 @@ function wrapDates (originalQuery, fields) {
|
||||
* @param {object} field
|
||||
*/
|
||||
function _isDateType (field) {
|
||||
return DATE_OIDS.hasOwnProperty(field.dataTypeID);
|
||||
return Object.prototype.hasOwnProperty.call(DATE_OIDS, field.dataTypeID);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -44,7 +44,7 @@ function overviews_view_for_table (table, overviews_metadata, indent) {
|
||||
|
||||
indent = indent || ' ';
|
||||
for (var z in overviews_metadata) {
|
||||
if (overviews_metadata.hasOwnProperty(z) && z !== 'schema') {
|
||||
if (Object.prototype.hasOwnProperty.call(overviews_metadata, z) && z !== 'schema') {
|
||||
sorted_overviews.push([z, overviews_metadata[z].table]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user