Commit 29616e60 authored by jeresig's avatar jeresig

Backing out cec68e2b, was causing serialize...

Backing out cec68e2b, was causing serialize tests to fail. Un-fixes #5566.
parent b4bb6e11
...@@ -352,7 +352,7 @@ jQuery.fn.extend({ ...@@ -352,7 +352,7 @@ jQuery.fn.extend({
root(this[i], first) : root(this[i], first) :
this[i], this[i],
i > 0 || results.cacheable || this.length > 1 ? i > 0 || results.cacheable || this.length > 1 ?
jQuery(fragment).clone(true)[0] : fragment.cloneNode(true) :
fragment fragment
); );
} }
......
...@@ -381,26 +381,6 @@ test("append(Function) with incoming value", function() { ...@@ -381,26 +381,6 @@ test("append(Function) with incoming value", function() {
QUnit.reset(); QUnit.reset();
}); });
test("append the same fragment with events (Bug #6997, 5566)", function () {
expect(2);
stop(1000);
var element = jQuery("<a class='test6997'></a>").click(function () {
ok(true, "Append second element events work");
});
jQuery("#listWithTabIndex li").append(element)
.find('a.test6997').eq(1).click();
element = jQuery("<li class='test6997'></li>").click(function () {
ok(true, "Before second element events work");
start();
});
jQuery("#listWithTabIndex li").before(element);
jQuery("#listWithTabIndex li.test6997").eq(1).click();
});
test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() { test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {
expect(16); expect(16);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment