src/js/social-share.js
function share(elem, options) {
        var data = mixin({}, defaults, options || {}, dataset(elem));

        if (data.imageSelector) {
            data.image = querySelectorAlls(data.imageSelector).map(function(item) {
                return item.src;
            }).join('||');
        }

        addClass(elem, 'share-component social-share');
        createIcons(elem, data);
        createWechat(elem, data);

        elem.initialized = true;
    }
function share(elem, options) {
        var data = mixin({}, defaults, options || {}, dataset(elem));

        if (data.imageSelector) {
            data.image = querySelectorAlls(data.imageSelector).map(function(item) {
                return item.src;
            }).join('||');
        }

        addClass(elem, 'share-component social-share');
        createIcons(elem, data);
        createWechat(elem, data);

        elem.initialized = true;
    }
function share ( elem , options ) { var data = mixin ( { } , defaults , options || { } , dataset ( elem ) ) ; if ( data . imageSelector ) { data . image = querySelectorAlls ( data . imageSelector ) . map ( function ( item ) { return item . src ; } ) . join ( '||' ) ; } addClass ( elem , 'share-component social-share' ) ; createIcons ( elem , data ) ; createWechat ( elem , data ) ; elem . initialized = true ; }
Initialize a share bar.

@param {Object}        $options globals (optional).

@return {Void}
Initialize a share bar .