Skip to content

Commit 9567f8b

Browse files
committed
Fixed updating logic
1 parent 9bd3daf commit 9567f8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/jsonclock/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ let draw = function() {
153153
g.setColor(clrs.tab);
154154

155155
g.fillRect(90, 0, w, headerHeight);
156-
loadJson();
157156
g.setColor(clrs.brackets);
158157
g.drawString("clockface.json", 3, 3);
159158

@@ -168,7 +167,7 @@ let draw = function() {
168167
numWidth = Math.max(numWidth, g.stringWidth(lineNumberStr));
169168
}
170169

171-
redraw();
170+
redrawValues();
172171
};
173172

174173
let redraw = function() {

0 commit comments

Comments
 (0)