You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by Coach Wei <co...@nexaweb.com> on 2006/07/12 01:06:20 UTC

RE: [jira] Created: (XAP-1) Improvement to LogFactory.js


-----Original Message-----
From: Peter Yee (JIRA) [mailto:xap-dev@incubator.apache.org] 
Sent: Tuesday, July 11, 2006 4:45 PM
To: xap-dev@incubator.apache.org
Subject: [jira] Created: (XAP-1) Improvement to LogFactory.js

Improvement to LogFactory.js
----------------------------

         Key: XAP-1
         URL: http://issues.apache.org/jira/browse/XAP-1
     Project: XAP
        Type: Improvement

 Environment: src\xap\util\LogFactory.js
    Reporter: Peter Yee
    Priority: Minor


When you close the debug window, you would get "Type Error Exception -
ConsoleLog.s_logWindow.document has no properties" for any scripts that
subsequently logs to the debug window.

Moreover, performance of normal page scripts slows dramatically as the
debug log grows larger and larger.  This is because the entire innerHTML
is being replaced each time an output call is made.  I modified the
output to use DOM appending of text nodes to the end of the console
document instead, and this allows normal page scripts that include
logging to run with little delay.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira