Remove dangling __data__ from other tests.

This occurs on Linux, where the directory listing order is different
from OS X and so other tests leave data bound to the "body" element.
This data is then propagated when new elements are appended, and thus
mess up some of the tests!
This commit is contained in:
Jason Davies 2011-10-08 12:58:41 +00:00 коммит произвёл Jason Davies, working on the server
Родитель bf73f5c506
Коммит 7a8460ede0
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -10,6 +10,7 @@ suite.addBatch({
"select(body)": {
topic: function() {
var body = d3.select("body").html("");
if ("__data__" in body[0][0]) delete body[0][0].__data__;
body.append("div").attr("class", "first");
body.append("div").attr("class", "second");
return body;