Reorder the version selector code for clarity

pull/1/head
Alex Beregszaszi 8 years ago
parent fa40becc75
commit 31c01f19b3
  1. 14
      src/app.js

@ -506,9 +506,15 @@ var run = function () {
// ----------------- version selector-------------
// var soljsonSources is provided by bin/list.js
// clear the version selector
$('option', '#versionSelector').remove();
// load the new version upon change
$('#versionSelector').change(function () {
loadVersion($('#versionSelector').val());
});
// var soljsonSources is provided by bin/list.js
if (window.soljsonSources !== undefined) {
$.each(soljsonSources, function (i, file) {
if (file) {
@ -521,10 +527,6 @@ var run = function () {
// always include the local version
$('#versionSelector').append(new Option('latest local version', 'soljson.js'));
$('#versionSelector').change(function () {
loadVersion($('#versionSelector').val());
});
storage.sync();
};

Loading…
Cancel
Save