From 74c05bbf9d92e43a6cf3799355b5f3598884409e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:56:05 -0600 Subject: Remove additional unneeded tq method conversions --- ksvg/test/ecma/bbox/bbox.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ksvg/test/ecma/bbox/bbox.js') diff --git a/ksvg/test/ecma/bbox/bbox.js b/ksvg/test/ecma/bbox/bbox.js index 88eaa592..2d692694 100644 --- a/ksvg/test/ecma/bbox/bbox.js +++ b/ksvg/test/ecma/bbox/bbox.js @@ -13,12 +13,12 @@ function bbox_loop(drawit, number) for(var i = 0; i < number; i++) { - var tqshape = doc.getElementById("test-" + i); - var bbox = tqshape.getBBox(); + var shape = doc.getElementById("test-" + i); + var bbox = shape.getBBox(); if(drawit == "true") { - draw_it(doc, bbox, tqshape, i + 1); + draw_it(doc, bbox, shape, i + 1); } else { @@ -27,13 +27,13 @@ function bbox_loop(drawit, number) } } -function do_string(tqshape, number) +function do_string(shape, number) { - var string = "\nShape " + number + "\nX = " + tqshape.x + "\nY = " + tqshape.y + "\nW = " + tqshape.width + "\nH = " + shape.height; + var string = "\nShape " + number + "\nX = " + shape.x + "\nY = " + shape.y + "\nW = " + shape.width + "\nH = " + shape.height; alert(string); } -function draw_it(doc, bbox, tqshape, number) +function draw_it(doc, bbox, shape, number) { var element = doc.createElement("rect"); element.setAttribute("x", bbox.x); @@ -45,7 +45,7 @@ function draw_it(doc, bbox, tqshape, number) element.setAttribute("stroke-width", "3"); element.setAttribute("id", "bbox" + number); - tqshape.getParentNode().appendChild(element); + shape.getParentNode().appendChild(element); } function gen_buttons(evt, number) -- cgit v1.2.3