src/panels/view/ButtonsView.js
/**
   * Add new object to collection
   * @param  Object  Model
   * @param  Object   Fragment collection
   *
   * @return Object Object created
   * */
Add new object to collection
@param  Object  Model
@param  Object   Fragment collection

@return Object Object created
Add new object to collection @param Object Model @param Object Fragment collection @return Object Object created
addToCollection(model, fragmentEl) {
    var fragment = fragmentEl || null;
    var viewObject = ButtonView;
    var view = new viewObject({
      model,
      config: this.config,
      parentM: this.parentM
    });
    var rendered = view.render().el;
    if (fragment) {
      fragment.appendChild(rendered);
    } else {
      this.$el.append(rendered);
    }
    return rendered;
  }
addToCollection ( model , fragmentEl ) { var fragment = fragmentEl || null ; var viewObject = ButtonView ; var view = new viewObject ( { model , config : this . config , parentM : this . parentM } ) ; var rendered = view . render ( ) . el ; if ( fragment ) { fragment . appendChild ( rendered ) ; } else { this . $el . append ( rendered ) ; } return rendered ; }
Add new object to collection
 @param  Object  Model
 @param  Object   Fragment collection
Add new object to collection @param Object Model @param Object Fragment collection