mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 06:57:03 +03:00
Remove _.isNull
This commit is contained in:
parent
9c0072d626
commit
178e5f6ef7
2 changed files with 5 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ import _ from '_';
|
|||
import $ from '$';
|
||||
import ko from 'ko';
|
||||
import { Notification, UploadErrorCode } from 'Common/Enums';
|
||||
import { pInt, isUnd, isNull, microtime } from 'Common/Utils';
|
||||
import { pInt, isUnd, microtime } from 'Common/Utils';
|
||||
import { $html, $htmlCL } from 'Common/Globals';
|
||||
import { reload as momentorReload } from 'Common/Momentor';
|
||||
import { langLink } from 'Common/Links';
|
||||
|
|
@ -98,7 +98,7 @@ export function i18n(key, valueList, defaulValue) {
|
|||
result = isUnd(defaulValue) ? key : defaulValue;
|
||||
}
|
||||
|
||||
if (!isUnd(valueList) && !isNull(valueList)) {
|
||||
if (!isUnd(valueList) && null !== valueList) {
|
||||
for (valueName in valueList) {
|
||||
if (Object.prototype.hasOwnProperty.call(valueList, valueName)) {
|
||||
result = result.replace('%' + valueName + '%', valueList[valueName]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue