mirror of https://github.com/espruino/BangleApps
Cleanup
parent
58e710d2da
commit
2ee7ba26ed
|
@ -1,6 +1,5 @@
|
||||||
const Layout = require('Layout');
|
const Layout = require('Layout');
|
||||||
const locale = require('locale');
|
const locale = require('locale');
|
||||||
const storage = require('Storage');
|
|
||||||
|
|
||||||
const tsl = require('timestamplog');
|
const tsl = require('timestamplog');
|
||||||
|
|
||||||
|
@ -198,7 +197,7 @@ class MainScreen {
|
||||||
Math.floor(availableHeight / logItemHeight));
|
Math.floor(availableHeight / logItemHeight));
|
||||||
|
|
||||||
// Populate log items in layout
|
// Populate log items in layout
|
||||||
for (i = 0; i < this.itemsPerPage; i++) {
|
for (let i = 0; i < this.itemsPerPage; i++) {
|
||||||
layout.logItems.c.push(
|
layout.logItems.c.push(
|
||||||
{type: 'custom', render: renderLogItem, item: undefined, itemIdx: undefined,
|
{type: 'custom', render: renderLogItem, item: undefined, itemIdx: undefined,
|
||||||
fillx: 1, height: logItemHeight}
|
fillx: 1, height: logItemHeight}
|
||||||
|
@ -385,7 +384,6 @@ class MainScreen {
|
||||||
class LogEntryScreen {
|
class LogEntryScreen {
|
||||||
|
|
||||||
constructor(stampLog, logIdx) {
|
constructor(stampLog, logIdx) {
|
||||||
stampLog = stampLog;
|
|
||||||
this.logIdx = logIdx;
|
this.logIdx = logIdx;
|
||||||
this.logItem = stampLog.log[logIdx];
|
this.logItem = stampLog.log[logIdx];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue