mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user