pagelets/button.js
function define() {
    var type = this.data.type || this.defaults.type
      , collection = this.collection;

    this.data.use = collection[type].class;
    this.data.text = this.data.text || collection[type].text;
    this.data.href = this.data.href || collection[type].href;

    return this;
  }
function define() {
    var type = this.data.type || this.defaults.type
      , collection = this.collection;

    this.data.use = collection[type].class;
    this.data.text = this.data.text || collection[type].text;
    this.data.href = this.data.href || collection[type].href;

    return this;
  }
function define ( ) { var type = this . data . type || this . defaults . type , collection = this . collection ; this . data . use = collection [ type ] . class ; this . data . text = this . data . text || collection [ type ] . text ; this . data . href = this . data . href || collection [ type ] . href ; return this ; }
Define the class and text that are on the button. Called by set on default.

@returns {Pagelet}
@api private
Define the class and text that are on the button . Called by set on default .