aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-02-15 22:41:08 -0500
committerAnton M <obhvsbypqghgc@gmail.com>2011-02-17 17:09:56 +0100
commitb9f5e2b97458f89cbcac3a333ba95b0eac568d49 (patch)
tree6ce6be303de0266c364ee8cecc612647bd0ef482 /test
parent5b38439011799ae53156d137305d9440e0cddb0a (diff)
downloadjquery-b9f5e2b97458f89cbcac3a333ba95b0eac568d49.tar.gz
jquery-b9f5e2b97458f89cbcac3a333ba95b0eac568d49.zip
Only perpetrate the .toJSON hack on data caches when they are attached to a plain Javascript object. Part of the continuing saga of #8108.
Diffstat (limited to 'test')
-rw-r--r--test/unit/data.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/unit/data.js b/test/unit/data.js
index c6ef843a1..8fb7f35ad 100644
--- a/test/unit/data.js
+++ b/test/unit/data.js
@@ -338,18 +338,12 @@ test("data-* attributes", function() {
num++;
}
- // TODO: Remove this hack which was introduced for 1.5.1
- num--;
-
equals( num, check.length, "Make sure that the right number of properties came through." );
for ( var prop in obj2 ) {
num2++;
}
- // TODO: Remove this hack which was introduced for 1.5.1
- num2--;
-
equals( num2, check.length, "Make sure that the right number of properties came through." );
child.attr("data-other", "newvalue");