From 20002ad9d3bbe778858c2841969421f3a76bea7c Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 1 Oct 2018 12:50:21 -0700 Subject: [PATCH] Revert "Use namespaced Utils for webamplazy" This reverts commit 949a2bc7715c8cd8fa2878684d2b2af2f7af9b00. --- js/webampLazy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/webampLazy.js b/js/webampLazy.js index f88d1963..37fef3da 100644 --- a/js/webampLazy.js +++ b/js/webampLazy.js @@ -22,7 +22,7 @@ import { ensureWindowsAreOnScreen } from "./actionCreators"; import { LOAD_STYLE } from "./constants"; -import * as Utils from "./utils"; +import { uniqueId, objectMap, objectForEach } from "./utils"; import { SET_AVAILABLE_SKINS, @@ -102,7 +102,7 @@ class Winamp { this.genWindows = []; if (__extraWindows) { this.genWindows = __extraWindows.map(genWindow => ({ - id: genWindow.id || `${genWindow.title}-${Utils.uniqueId()}`, + id: genWindow.id || `${genWindow.title}-${uniqueId()}`, ...genWindow })); @@ -155,13 +155,13 @@ class Winamp { const layout = options.__initialWindowLayout; if (layout != null) { - Utils.objectForEach(layout, (w, windowId) => { + objectForEach(layout, (w, windowId) => { if (w.size != null) { this.store.dispatch(setWindowSize(windowId, w.size)); } }); this.store.dispatch( - updateWindowPositions(Utils.objectMap(layout, w => w.position), true) + updateWindowPositions(objectMap(layout, w => w.position), true) ); }