• This looks pretty neat, hopefully I'll have some time to play with it this weekend.

    Would it be bloaty to add something like this (untested):

      Layout.prototype.setLabel = function(id, label) {
          var l = this._l;
          if (l[id].label !== label) {
              this.clear(id);
              l[id].label = label;
              render(id);
          }
      }
    

    (or even add it to txt/btn elements, so you could just do layout.date.setLabel('New label'))

    Just because I expect otherwise the compare-clear-update-render code will probably show up in pretty much all apps anyway.

About

Avatar for rigrig @rigrig started