Skip to content

Commit 40059b7

Browse files
author
Corwin Kerr
committed
widclkinfo: Remove references to widget_utils
1 parent 3a0de90 commit 40059b7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

apps/widclkinfo/widget.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ if (!require("clock_info").loadCount) { // don't load if a clock_info was alread
22
// Load the clock infos
33
let clockInfoItems = clock_info.load();
44

5-
// TODO only do checks if widget_utils.swipeOn is being used
6-
let wuo = widget_utils.offset;
7-
85
let clockInfoMenu = clock_info.addInteractive(clockInfoItems, {
96
app: "widclkinfo",
107
// Add the dimensions we're rendering to here - these are used to detect taps on the clock info area
@@ -19,9 +16,8 @@ if (!require("clock_info").loadCount) { // don't load if a clock_info was alread
1916
// info: data returned from itm.get() containing text/img/etc
2017
// options: options passed into addInteractive
2118
clockInfoInfo = info;
22-
wuo = 0 | widget_utils.offset;
23-
clockInfoMenu.y = options.y + wuo;
2419
if (WIDGETS["clkinfo"]) {
20+
clockInfoMenu.y = options.y;
2521
WIDGETS["clkinfo"].draw(WIDGETS["clkinfo"]);
2622
console.log("Clock Info was updated, thus drawing widget.");
2723
}
@@ -35,8 +31,7 @@ if (!require("clock_info").loadCount) { // don't load if a clock_info was alread
3531
width: clockInfoMenu.w,
3632
draw:function(e) {
3733
clockInfoMenu.x = e.x;
38-
wuo = 0 | widget_utils.offset;
39-
clockInfoMenu.y = e.y + wuo;
34+
clockInfoMenu.y = e.y;
4035
var o = clockInfoMenu;
4136
// Clear the background
4237
g.reset();

0 commit comments

Comments
 (0)