Skip to content

Commit

Permalink
Use namespaced Utils for webamplazy
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Oct 1, 2018
1 parent 3049350 commit 949a2bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/webampLazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
ensureWindowsAreOnScreen
} from "./actionCreators";
import { LOAD_STYLE } from "./constants";
import { uniqueId, objectMap, objectForEach } from "./utils";
import * as Utils from "./utils";

import {
SET_AVAILABLE_SKINS,
Expand Down Expand Up @@ -102,7 +102,7 @@ class Winamp {
this.genWindows = [];
if (__extraWindows) {
this.genWindows = __extraWindows.map(genWindow => ({
id: genWindow.id || `${genWindow.title}-${uniqueId()}`,
id: genWindow.id || `${genWindow.title}-${Utils.uniqueId()}`,
...genWindow
}));

Expand Down Expand Up @@ -155,13 +155,13 @@ class Winamp {

const layout = options.__initialWindowLayout;
if (layout != null) {
objectForEach(layout, (w, windowId) => {
Utils.objectForEach(layout, (w, windowId) => {
if (w.size != null) {
this.store.dispatch(setWindowSize(windowId, w.size));
}
});
this.store.dispatch(
updateWindowPositions(objectMap(layout, w => w.position), true)
updateWindowPositions(Utils.objectMap(layout, w => w.position), true)
);
}

Expand Down

0 comments on commit 949a2bc

Please sign in to comment.