Fix test for disabled elements.

abstract-chosen
Patrick Filler 2011-07-19 17:01:41 -04:00
parent 6247674d71
commit 5a1232532d
4 changed files with 4 additions and 10 deletions

View File

@ -701,7 +701,6 @@
return _results;
};
SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
var _ref;
if (option.nodeName === "OPTION") {
if (option.text !== "") {
if (group_position != null) {
@ -713,9 +712,7 @@
value: option.value,
text: option.text,
selected: option.selected,
disabled: (_ref = group_disabled === true) != null ? _ref : {
group_disabled: option.disabled
},
disabled: group_disabled === true ? group_disabled : option.disabled,
group_array_index: group_position
});
} else {

View File

@ -720,7 +720,6 @@
return _results;
};
SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
var _ref;
if (option.nodeName === "OPTION") {
if (option.text !== "") {
if (group_position != null) {
@ -732,9 +731,7 @@
value: option.value,
text: option.text,
selected: option.selected,
disabled: (_ref = group_disabled === true) != null ? _ref : {
group_disabled: option.disabled
},
disabled: group_disabled === true ? group_disabled : option.disabled,
group_array_index: group_position
});
} else {

View File

@ -610,7 +610,7 @@ class SelectParser
value: option.value
text: option.text
selected: option.selected
disabled: ((group_disabled is true) ? group_disabled : option.disabled)
disabled: if group_disabled is true then group_disabled else option.disabled
group_array_index: group_position
else
@parsed.push

View File

@ -608,7 +608,7 @@ class SelectParser
value: option.value
text: option.text
selected: option.selected
disabled: ((group_disabled is true) ? group_disabled : option.disabled)
disabled: if group_disabled is true then group_disabled else option.disabled
group_array_index: group_position
else
@parsed.push