1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

Remove cla for separate PR, and clean up variable declaration.

This commit is contained in:
Matt Lauber 2015-11-13 11:30:06 -05:00
parent 35ce8c8b55
commit 8ccee5d015
2 changed files with 6 additions and 8 deletions

View File

@ -114,11 +114,11 @@ SelectWidget.prototype.getSelectDomNode = function() {
// Return an array of the selected opion values // Return an array of the selected opion values
// select is an HTML select element // select is an HTML select element
SelectWidget.prototype.getSelectValues = function() { SelectWidget.prototype.getSelectValues = function() {
var select = this.getSelectDomNode() var select, result, options, opt;
var result = []; select = this.getSelectDomNode();
var options = select && select.options; result = [];
var opt; options = select && select.options;
for (var i=0, iLen=options.length; i<iLen; i++) { for (var i=0; i<options.length; i++) {
opt = options[i]; opt = options[i];
if (opt.selected) { if (opt.selected) {
result.push(opt.value || opt.text); result.push(opt.value || opt.text);

View File

@ -256,5 +256,3 @@ Tony Grosinger @tgrosinger 2015/10/03
Antaeus Feldspar @afeldspar 2015/10/20 Antaeus Feldspar @afeldspar 2015/10/20
Soeren Enevoldsen, @senevoldsen90, 2015/10/09 Soeren Enevoldsen, @senevoldsen90, 2015/10/09
Matthew Lauber, @mklauber, 2015/11/13