pagelets/share.js
function define() {
    var defaults = this.defaults
      , data = this.data
      , load = data.load || defaults.load
      , href = this.href
      , def = [];

    //
    // Check what social media to load, if none provided load defaults in `load`.
    //
    Object.keys(load).forEach(function checkLoad(key) {
      if (!load[key] || !(key in href)) return;
      def.push(href[key]);
    });

    this.queue.enlist('loader', { plain: def });
    return this;
  }
function define() {
    var defaults = this.defaults
      , data = this.data
      , load = data.load || defaults.load
      , href = this.href
      , def = [];

    //
    // Check what social media to load, if none provided load defaults in `load`.
    //
    Object.keys(load).forEach(function checkLoad(key) {
      if (!load[key] || !(key in href)) return;
      def.push(href[key]);
    });

    this.queue.enlist('loader', { plain: def });
    return this;
  }
function define ( ) { var defaults = this . defaults , data = this . data , load = data . load || defaults . load , href = this . href , def = [ ] ; // // Check what social media to load, if none provided load defaults in `load`. // Object . keys ( load ) . forEach ( function checkLoad ( key ) { if ( ! load [ key ] || ! ( key in href ) ) return ; def . push ( href [ key ] ) ; } ) ; this . queue . enlist ( 'loader' , { plain : def } ) ; return this ; }
Define what external JS script should be loaded.

@return {Pagelet}
@api private
Define what external JS script should be loaded .