Code refactoring (4) (es5 -> es2015)

This commit is contained in:
RainLoop Team 2016-07-15 22:54:37 +03:00
parent e8df1cdb57
commit d7ab67a460
30 changed files with 164 additions and 173 deletions

View file

@ -1,5 +1,4 @@
/* global RL_COMMUNITY */
import window from 'window';
import _ from '_';
import $ from '$';

View file

@ -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}