code: function View(attrs) {
    var view = this;
    if (typeof attrs !== 'undefined') {
      Object.keys(attrs).forEach(function (attr) {
        view[attr] = attrs[attr];
      });
    }
    if (typeof this.initialize === 'function')
      this.initialize();
  }
docs: Created by ticup on 04/11/13.