Skip to content

Commit

Permalink
update the two calls that set the the "selected" to return false rath…
Browse files Browse the repository at this point in the history
…er than an empty string
  • Loading branch information
erunyon committed Dec 22, 2011
1 parent e43e225 commit d34db85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.mobileselect.js
Expand Up @@ -29,7 +29,7 @@
_s.appendTo(_p); // append it to the parent

$("<option />", {
"selected": (!$('.current', _o).length) ? 'selected' : '',
"selected": (!$('.current', _o).length) ? 'selected' : false,
"value": "",
"text": options.defaultOption
}).appendTo(_s);
Expand All @@ -38,7 +38,7 @@
// make this one selected
$('a', _o).each(function() {
var el = $(this),
sl = el.parent('li').hasClass('current') ? 'selected' : '';
sl = el.parent('li').hasClass('current') ? 'selected' : false;
$("<option />", {
"selected": sl,
"value": el.attr("href"),
Expand Down

0 comments on commit d34db85

Please sign in to comment.