Replaced _.has() with native Object.prototype.hasOwnProperty.call()

This commit is contained in:
djmaze 2020-07-20 22:06:21 +02:00
parent 84ac7dc893
commit 756fe81091
3 changed files with 4 additions and 6 deletions

View file

@ -3,7 +3,7 @@ import _ from '_';
import $ from '$';
import ko from 'ko';
import { Notification, UploadErrorCode } from 'Common/Enums';
import { pInt, isUnd, isNull, has, microtime } from 'Common/Utils';
import { pInt, isUnd, isNull, microtime } from 'Common/Utils';
import { $html, $htmlCL } from 'Common/Globals';
import { reload as momentorReload } from 'Common/Momentor';
import { langLink } from 'Common/Links';
@ -100,7 +100,7 @@ export function i18n(key, valueList, defaulValue) {
if (!isUnd(valueList) && !isNull(valueList)) {
for (valueName in valueList) {
if (has(valueList, valueName)) {
if (Object.prototype.hasOwnProperty.call(valueList, valueName)) {
result = result.replace('%' + valueName + '%', valueList[valueName]);
}
}