Remove commented out alt method (slower code)
parent
93f6dbae74
commit
734e64ec53
|
|
@ -38,12 +38,10 @@ Graphics.prototype.setFontLatoSmall = function(scale) {
|
|||
// must be inside our own scope here so that when we are unloaded everything disappears
|
||||
// we also define functions using 'let fn = function() {..}' for the same reason. function decls are global
|
||||
|
||||
let draw = function() {
|
||||
//require('DateExt')
|
||||
let draw = function() {
|
||||
var date = new Date();
|
||||
var timeStr = require("locale").time(date,1);
|
||||
var dateStr = require("locale").dow(date,1) + ', ' + date.getDate() + ' ' + require("locale").month(date,1);
|
||||
//var dateStr = date.as("T, D C").str;
|
||||
var h = g.getHeight();
|
||||
var w = g.getWidth();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue