src/bind.js
function generate(bind, el, param, value) {
  var div = element('div', {'class': BindClass});

  div.appendChild(element('span',
    {'class': NameClass},
    (param.name || param.signal)
  ));

  el.appendChild(div);

  var input = form;
  switch (param.input) {
    case 'checkbox': input = checkbox; break;
    case 'select':   input = select; break;
    case 'radio':    input = radio; break;
    case 'range':    input = range; break;
  }

  input(bind, div, param, value);
}
function generate(bind, el, param, value) {
  var div = element('div', {'class': BindClass});

  div.appendChild(element('span',
    {'class': NameClass},
    (param.name || param.signal)
  ));

  el.appendChild(div);

  var input = form;
  switch (param.input) {
    case 'checkbox': input = checkbox; break;
    case 'select':   input = select; break;
    case 'radio':    input = radio; break;
    case 'range':    input = range; break;
  }

  input(bind, div, param, value);
}
function generate ( bind , el , param , value ) { var div = element ( 'div' , { 'class' : BindClass } ) ; div . appendChild ( element ( 'span' , { 'class' : NameClass } , ( param . name || param . signal ) ) ) ; el . appendChild ( div ) ; var input = form ; switch ( param . input ) { case 'checkbox' : input = checkbox ; break ; case 'select' : input = select ; break ; case 'radio' : input = radio ; break ; case 'range' : input = range ; break ; } input ( bind , div , param , value ) ; }
Generate an HTML input form element and bind it to a signal.
Generate an HTML input form element and bind it to a signal .