summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jquery.multiple.select.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index 03db7db..8380055 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -124,7 +124,7 @@
if ($elm.is('option')) {
var value = $elm.val(),
text = that.options.textTemplate($elm),
- selected = (that.$el.attr('multiple') != undefined) ? $elm.prop('selected') : ($elm.attr('selected') == 'selected'),
+ selected = $elm.prop('selected'),
style = this.options.styler(value) ? ' style="' + this.options.styler(value) + '"' : '';
disabled = groupDisabled || $elm.prop('disabled');