mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Code refactoring (4) (es5 -> es2015)
This commit is contained in:
parent
e8df1cdb57
commit
d7ab67a460
30 changed files with 164 additions and 173 deletions
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
/* global RL_COMMUNITY */
|
||||
import window from 'window';
|
||||
import _ from '_';
|
||||
import $ from '$';
|
||||
|
|
|
|||
|
|
@ -85,6 +85,15 @@ export function pBool(value)
|
|||
return !!value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {*} value
|
||||
* @returns {string}
|
||||
*/
|
||||
export function boolToAjax(value)
|
||||
{
|
||||
return value ? '1' : '0';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {*} values
|
||||
* @returns {boolean}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue