Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing an issue where IE wasn't iterating over a select's options lis…

…t properly
  • Loading branch information...
commit 79cb8f251a36ef442f029fa7b2969348f35c1526 1 parent b391ed3
@anutron anutron authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  Element/Element.js
  2. +1 −1  mootools-1.1-to-1.2-upgrade-helper.js
View
2  Element/Element.js
@@ -51,7 +51,7 @@
switch(this.getTag()){
case 'select':
var values = [];
- $each(this.options, function(option){
+ $each($$(this.options), function(option){
if (option.selected) values.push($pick(option.value, option.text));
});
return (this.multiple) ? values : values[0];
View
2  mootools-1.1-to-1.2-upgrade-helper.js
@@ -314,7 +314,7 @@ var Abstract = function(obj){
switch(this.getTag()){
case 'select':
var values = [];
- $each(this.options, function(option){
+ $each($$(this.options), function(option){
if (option.selected) values.push($pick(option.value, option.text));
});
return (this.multiple) ? values : values[0];
Please sign in to comment.
Something went wrong with that request. Please try again.