From fb435b9ce7b5cf5a68559c73d9a4d6566eefa5b8 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Fri, 19 Aug 2011 16:03:42 -0400 Subject: [PATCH] fixing image library regression --- examples/image-library-example.rkt | 7 +++++++ js-assembler/runtime-src/baselib-ports.js | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/image-library-example.rkt b/examples/image-library-example.rkt index e813c94..f26f3e3 100644 --- a/examples/image-library-example.rkt +++ b/examples/image-library-example.rkt @@ -615,3 +615,10 @@ "(step-count? 0)" (step-count? 0) + + + +(beside/align "top" + (rectangle 20 100 "solid" "black") + (rectangle 20 120 "solid" "black") + (rectangle 20 80 "solid" "black")) diff --git a/js-assembler/runtime-src/baselib-ports.js b/js-assembler/runtime-src/baselib-ports.js index 59fe96b..74751d2 100644 --- a/js-assembler/runtime-src/baselib-ports.js +++ b/js-assembler/runtime-src/baselib-ports.js @@ -19,6 +19,7 @@ StandardOutputPort.prototype = baselib.heir(OutputPort.prototype); StandardOutputPort.prototype.writeDomNode = function (MACHINE, domNode) { MACHINE.params['currentDisplayer'](MACHINE, domNode); + $(domNode).trigger({type : 'afterAttach'}); $('*', domNode).trigger({type : 'afterAttach'}); }; @@ -28,6 +29,7 @@ StandardErrorPort.prototype = baselib.heir(OutputPort.prototype); StandardErrorPort.prototype.writeDomNode = function (MACHINE, domNode) { MACHINE.params['currentErrorDisplayer'](MACHINE, domNode); + $(domNode).trigger({type : 'afterAttach'}); $('*', domNode).trigger({type : 'afterAttach'}); }; @@ -35,7 +37,6 @@ - var OutputStringPort = function () { this.buf = []; };