examples/store/public/js/$$.js
function string_component(self, message, component) {
  eventify(self);
  valuable(self, update, '');
  var $c = $$().addClass('control');
  var $l = $("<label>" + message + "</label>");
  var $i = $(component);
  $c.append($l, $i);
  self.$el = $c;
  function update() {
    $i.val(self._data);
  }

  $i.on('change', function () {
    self._data = $i.val();
    self.emit('change');
  })
}
function string_component(self, message, component) {
  eventify(self);
  valuable(self, update, '');
  var $c = $$().addClass('control');
  var $l = $("<label>" + message + "</label>");
  var $i = $(component);
  $c.append($l, $i);
  self.$el = $c;
  function update() {
    $i.val(self._data);
  }

  $i.on('change', function () {
    self._data = $i.val();
    self.emit('change');
  })
}
function string_component ( self , message , component ) { eventify ( self ) ; valuable ( self , update , '' ) ; var $c = $$ ( ) . addClass ( 'control' ) ; var $l = $ ( "<label>" + message + "</label>" ) ; var $i = $ ( component ) ; $c . append ( $l , $i ) ; self . $el = $c ; function update ( ) { $i . val ( self . _data ) ; } $i . on ( 'change' , function ( ) { self . _data = $i . val ( ) ; self . emit ( 'change' ) ; } ) }
simple component !
simple component !