function Controller (attrs) {
  for (let attr in attrs) {
    if (attrs[attr].bind) {
      this[attr] = attrs[attr].bind(this);
    } else {
      this[attr] = attrs[attr];
    }
  }
}
function Controller (attrs) {
  for (let attr in attrs) {
    if (attrs[attr].bind) {
      this[attr] = attrs[attr].bind(this);
    } else {
      this[attr] = attrs[attr];
    }
  }
}
function Controller ( attrs ) { for ( let attr in attrs ) { if ( attrs [ attr ] . bind ) { this [ attr ] = attrs [ attr ] . bind ( this ) ; } else { this [ attr ] = attrs [ attr ] ; } } }
Constructor
Constructor