mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Revert "Closes #741: Remove $("body") case in favor of $(document.body)."
This reverts commit 532ba250a9.
This commit is contained in:
@@ -184,6 +184,9 @@ test(".data()", function() {
|
||||
|
||||
var dataObj = div.data();
|
||||
|
||||
// TODO: Remove this hack which was introduced in 1.5.1
|
||||
delete dataObj.toJSON;
|
||||
|
||||
deepEqual( dataObj, {test: "success"}, "data() get the entire data object" );
|
||||
strictEqual( div.data("foo"), undefined, "Make sure that missing result is still undefined" );
|
||||
|
||||
@@ -195,6 +198,9 @@ test(".data()", function() {
|
||||
|
||||
dataObj = jQuery.extend(true, {}, jQuery(obj).data());
|
||||
|
||||
// TODO: Remove this hack which was introduced for 1.5.1
|
||||
delete dataObj.toJSON;
|
||||
|
||||
deepEqual( dataObj, { foo: "baz" }, "Retrieve data object from a wrapped JS object (#7524)" );
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user