src/view.js
// Updates the view's models along with any affected bindings.
Updates the view's models along with any affected bindings.
Updates the view ' s models along with any affected bindings .
update(models = {}) {
    Object.keys(models).forEach(key => {
      this.models[key] = models[key]
    })
    this.bindings.forEach(binding => {
      if (binding.update) {
        binding.update(models)
      }
    })
  }
update ( models = { } ) { Object . keys ( models ) . forEach ( key => { this . models [ key ] = models [ key ] } ) this . bindings . forEach ( binding => { if ( binding . update ) { binding . update ( models ) } } ) }
Updates the view's models along with any affected bindings.
Updates the view ' s models along with any affected bindings .