Only perpetrate the .toJSON hack on data caches when they are attached to a plain...
[jquery.git] / test / unit / data.js
index c6ef843..8fb7f35 100644 (file)
@@ -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");