Improve code readability with better comments

This commit is contained in:
Andreas Hocevar
2016-05-11 15:46:39 +02:00
parent d6395a3c82
commit d59ace1a61

View File

@@ -53,7 +53,7 @@ $(function () {
$(window).on('resize', _onResize); $(window).on('resize', _onResize);
_onResize(); _onResize();
// create source code links to github // warn about outdated version
var srcLinks = $('div.tag-source'); var srcLinks = $('div.tag-source');
var location = window.location.href; var location = window.location.href;
var branchSearch = location.match(/\/([^\/]*)\/apidoc\//); var branchSearch = location.match(/\/([^\/]*)\/apidoc\//);
@@ -70,6 +70,8 @@ $(function () {
} }
} }
} }
// create source code links to github
var version = $('.package-version'); var version = $('.package-version');
var branch = version.text(); var branch = version.text();
srcLinks.each(function(i, el) { srcLinks.each(function(i, el) {