Fixes #8129. Fix cloning multiple selected options in IE8.

This commit is contained in:
rwldrn 2011-02-01 17:54:02 -05:00 committed by Anton M
parent cb85da7b62
commit fa4c90987f
2 changed files with 11 additions and 3 deletions

View file

@ -503,6 +503,8 @@ jQuery.extend({
// proprietary methods to clear the events. Thanks to MooTools
// guys for this hotness.
cloneFixAttributes( elem, clone );
// Using Sizzle here is crazy slow, so we use getElementsByTagName
// instead
srcElements = elem.getElementsByTagName("*");
@ -514,8 +516,6 @@ jQuery.extend({
for ( i = 0; srcElements[i]; ++i ) {
cloneFixAttributes( srcElements[i], destElements[i] );
}
cloneFixAttributes( elem, clone );
}
// Copy the events from the original to the clone