taskbar.js: Define some 'public' constants using 'var'

This commit fixes the following JS warnings:

```
Some code accessed the property 'DASH_ITEM_HOVER_TIMEOUT' on the module 'taskbar'.
That property was defined with 'let' or 'const' inside the module. This was
previously supported, but is not correct according to the ES6 standard. Any
symbols to be exported from a module must be defined with 'var'. The property
access will work as previously for the time being, but please fix your code anyway.
```

```
Some code accessed the property 'DASH_ANIMATION_TIME' on the module 'taskbar'.
That property was defined with 'let' or 'const' inside the module. This was
previously supported, but is not correct according to the ES6 standard.
Any symbols to be exported from a module must be defined with 'var'.
The property access will work as previously for the time being, but please fix
your code anyway.
```

Signed-off-by: Alexander Rüedlinger <a.rueedlinger@gmail.com>
This commit is contained in:
Alexander Rüedlinger
2017-10-18 19:25:16 +02:00
parent 9295bc829d
commit 977fe4f5f0

View File

@@ -49,10 +49,10 @@ const Convenience = Me.imports.convenience;
const WindowPreview = Me.imports.windowPreview;
const AppIcons = Me.imports.appIcons;
let DASH_ANIMATION_TIME = Dash.DASH_ANIMATION_TIME;
var DASH_ANIMATION_TIME = Dash.DASH_ANIMATION_TIME;
let DASH_ITEM_LABEL_SHOW_TIME = Dash.DASH_ITEM_LABEL_SHOW_TIME;
let DASH_ITEM_LABEL_HIDE_TIME = Dash.DASH_ITEM_LABEL_HIDE_TIME;
let DASH_ITEM_HOVER_TIMEOUT = Dash.DASH_ITEM_HOVER_TIMEOUT;
var DASH_ITEM_HOVER_TIMEOUT = Dash.DASH_ITEM_HOVER_TIMEOUT;
let HFADE_WIDTH = 48;
function getPosition() {