mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
jshint -> eslint
This commit is contained in:
parent
40b3f929e9
commit
77a1d3f3df
100 changed files with 716 additions and 811 deletions
|
|
@ -7,17 +7,15 @@ import {trim} from 'Common/Utils';
|
|||
|
||||
class Audio
|
||||
{
|
||||
player = null;
|
||||
notificator = null;
|
||||
|
||||
supported = false;
|
||||
supportedMp3 = false;
|
||||
supportedOgg = false;
|
||||
supportedWav = false;
|
||||
supportedNotification = false;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this.notificator = null;
|
||||
|
||||
this.supportedMp3 = false;
|
||||
this.supportedOgg = false;
|
||||
this.supportedWav = false;
|
||||
this.supportedNotification = false;
|
||||
|
||||
this.player = this.createNewObject();
|
||||
|
||||
this.supported = !bMobileDevice && !bSafari && !!this.player && !!this.player.play;
|
||||
|
|
|
|||
|
|
@ -5,17 +5,6 @@ import * as Settings from 'Storage/Settings';
|
|||
|
||||
class HtmlEditor
|
||||
{
|
||||
editor = null;
|
||||
$element = null;
|
||||
|
||||
blurTimer = 0;
|
||||
|
||||
onBlur = null;
|
||||
onReady = null;
|
||||
onModeChange = null;
|
||||
|
||||
__inited = null;
|
||||
|
||||
/**
|
||||
* @param {Object} element
|
||||
* @param {Function=} onBlur
|
||||
|
|
@ -24,6 +13,9 @@ class HtmlEditor
|
|||
*/
|
||||
constructor(element, onBlur = null, onReady = null, onModeChange = null)
|
||||
{
|
||||
this.editor = null;
|
||||
this.blurTimer = 0;
|
||||
|
||||
this.onBlur = onBlur;
|
||||
this.onReady = onReady;
|
||||
this.onModeChange = onModeChange;
|
||||
|
|
|
|||
|
|
@ -708,7 +708,7 @@ class Selector
|
|||
* @param {Object} item
|
||||
* @param {Object=} event
|
||||
*/
|
||||
actionClick = function (item, event = null) {
|
||||
actionClick(item, event = null) {
|
||||
|
||||
if (item)
|
||||
{
|
||||
|
|
@ -761,4 +761,3 @@ class Selector
|
|||
}
|
||||
|
||||
export {Selector, Selector as default};
|
||||
module.exports = Selector;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue