aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-02-01 17:54:02 -0500
committerAnton M <obhvsbypqghgc@gmail.com>2011-02-02 00:09:51 +0100
commitfa4c90987fc9aede4de3f41976cda91acad81736 (patch)
tree98676824479991d40477544be74ff6688e8ebd5e /src/manipulation.js
parentcb85da7b62e74e7339ed652ade209aaffbd0c15b (diff)
downloadjquery-fa4c90987fc9aede4de3f41976cda91acad81736.tar.gz
jquery-fa4c90987fc9aede4de3f41976cda91acad81736.zip
Fixes #8129. Fix cloning multiple selected options in IE8.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 1ef19f83b..19a6c22ba 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -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