mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-19 01:23:49 +00:00
Use namespaced Utils for webamplazy
This commit is contained in:
parent
3049350701
commit
949a2bc771
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
@ -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
|
||||
}));
|
||||
|
||||
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue