From baf58fcbbe150afe652705fbb4b315493a4664c9 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Wed, 6 Jul 2011 20:56:51 -0400 Subject: [PATCH] bug identified: structures need to use a span instead of a div --- image/private/color.rkt | 1 + js-assembler/runtime-src/baselib-structs.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/image/private/color.rkt b/image/private/color.rkt index 840c5ed..370e379 100644 --- a/image/private/color.rkt +++ b/image/private/color.rkt @@ -7,4 +7,5 @@ (color 3 4 5 0) +1 (make-color 3 5 7 0) \ No newline at end of file diff --git a/js-assembler/runtime-src/baselib-structs.js b/js-assembler/runtime-src/baselib-structs.js index a5a2c20..3fa112d 100644 --- a/js-assembler/runtime-src/baselib-structs.js +++ b/js-assembler/runtime-src/baselib-structs.js @@ -165,7 +165,7 @@ Struct.prototype.toDomNode = function(params) { params.put(this, true); - var node = document.createElement("div"); + var node = document.createElement("span"); $(node).append(document.createTextNode("(")); $(node).append(document.createTextNode(this._constructorName)); for(var i = 0; i < this._fields.length; i++) {