plugins/download/download.js
function (config) {
            var url = config.url,
                viewerAPI = scope.getConfig().api;

            if (url) {
                viewerAPI.download = function () {
                    download(url);
                };
            }
        }
function (config) {
            var url = config.url,
                viewerAPI = scope.getConfig().api;

            if (url) {
                viewerAPI.download = function () {
                    download(url);
                };
            }
        }
function ( config ) { var url = config . url , viewerAPI = scope . getConfig ( ) . api ; if ( url ) { viewerAPI . download = function ( ) { download ( url ) ; } ; } }
Initialize the download plugin
@param   {Object} config     The config object
@param   {string} config.url The download URL
@returns {void}
Initialize the download plugin