forked from FOSS/BangleApps
Sliding Clock: get rid of the setup variables after the init to reduce the memory footprint
parent
c09dd1af5a
commit
b9a7e76beb
|
@ -314,7 +314,6 @@ function initDisplay(settings) {
|
||||||
row_displays.push(create_row(row_type,j));
|
row_displays.push(create_row(row_type,j));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
initComplete();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function mergeMaps(map1,map2){
|
function mergeMaps(map1,map2){
|
||||||
|
@ -733,6 +732,7 @@ function loadSettings() {
|
||||||
initDisplay();
|
initDisplay();
|
||||||
updateColorScheme();
|
updateColorScheme();
|
||||||
}
|
}
|
||||||
|
initComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
function button3pressed() {
|
function button3pressed() {
|
||||||
|
|
|
@ -17,7 +17,13 @@ class EnglishDateFormatter extends DateFormatter {
|
||||||
const month = monthToText(date);
|
const month = monthToText(date);
|
||||||
return [hours_txt,mins_txt[0],mins_txt[1],day_of_week,date_txt,month];
|
return [hours_txt,mins_txt[0],mins_txt[1],day_of_week,date_txt,month];
|
||||||
}
|
}
|
||||||
defaultRowTypes(){
|
defaultRowTypes() {
|
||||||
|
return {
|
||||||
|
small: {size: 'ssmall'}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultRowDefs(){
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'large',
|
type: 'large',
|
||||||
|
@ -39,12 +45,6 @@ class EnglishDateFormatter extends DateFormatter {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultRowDefs(){
|
|
||||||
return {
|
|
||||||
small: {size: 'ssmall'}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = EnglishDateFormatter;
|
module.exports = EnglishDateFormatter;
|
Loading…
Reference in New Issue