Mercurial > hg-website
changeset 482:1188817fdf3a
downloads: indent onload function 4 spaces like the rest of the code
author | Kevin Bullock <kbullock+mercurial@ringworld.org> |
---|---|
date | Sun, 14 May 2017 22:01:40 -0500 |
parents | 23ff698c5dbb |
children | 0978d4880577 |
files | static/js/download.js |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/static/js/download.js Wed Jul 05 14:22:48 2017 -0500 +++ b/static/js/download.js Sun May 14 22:01:40 2017 -0500 @@ -134,19 +134,19 @@ }; (function (document, window) { - var load = function () { - Downloader.init(sources); - window.dl = Downloader.select(); - var versElement = document.getElementById('download-version') - , descElement = document.getElementById('download-description'); - versElement.appendChild(document.createTextNode(dl.attr('version'))); - descElement.appendChild(document.createTextNode(dl.attr('desc'))); - } + var load = function () { + Downloader.init(sources); + window.dl = Downloader.select(); + var versElement = document.getElementById('download-version') + , descElement = document.getElementById('download-description'); + versElement.appendChild(document.createTextNode(dl.attr('version'))); + descElement.appendChild(document.createTextNode(dl.attr('desc'))); + } - if (document.readyState !== 'complete') { - document.addEventListener('DOMContentLoaded', load); - return; - } + if (document.readyState !== 'complete') { + document.addEventListener('DOMContentLoaded', load); + return; + } - load(); + load(); })(document, window);