From 945e2a57fb217f707bfd60803901da64a7ee3b06 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 25 Apr 2015 19:08:58 -0700 Subject: [PATCH] time.js again. --- example/time.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example/time.js b/example/time.js index 339c36f..263c6ce 100755 --- a/example/time.js +++ b/example/time.js @@ -25,6 +25,8 @@ var screen = blessed.screen({ autoPadding: true }); +var lastTime; + var positions = {}; var container = blessed.box({ @@ -1005,6 +1007,9 @@ function updateTime() { ? h + ':' + m + ':' + s + im : h + ':' + m + im; + if (time === lastTime) return; + lastTime = time; + time = time.split(''); if (~argv.indexOf('-n')) {