Small fixes

This commit is contained in:
RainLoop Team 2017-08-07 18:09:14 +03:00
parent 0f6b70f63e
commit 425f0ee3f6
11 changed files with 5608 additions and 5457 deletions

View file

@ -1455,6 +1455,15 @@ export function mimeContentType(fileName)
return result;
}
/**
* @param {string} color
* @returns {boolean}
*/
export function isTransparent(color)
{
return 'rgba(0, 0, 0, 0)' === color || 'transparent' === color;
}
/**
* @param {Object} $el
* @returns {number}