mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Refactor clone a bit to only create one clone on any given codepath
This commit is contained in:
@@ -28,10 +28,10 @@ var testText = function(valueObj) {
|
||||
|
||||
// Blackberry 4.6 doesn't maintain comments in the DOM
|
||||
equal( jQuery("#nonnodes")[0].childNodes.length < 3 ? 8 : j[2].nodeType, 8, "Check node,textnode,comment with text()" );
|
||||
}
|
||||
};
|
||||
|
||||
test("text(String)", function() {
|
||||
testText(bareObj)
|
||||
testText(bareObj);
|
||||
});
|
||||
|
||||
test("text(Function)", function() {
|
||||
|
||||
Reference in New Issue
Block a user