[Laszlo-checkins] r11701 - openlaszlo/trunk/lps/components/debugger

hqm@openlaszlo.org hqm at openlaszlo.org
Thu Nov 6 13:06:01 PST 2008


Author: hqm
Date: 2008-11-06 13:05:59 -0800 (Thu, 06 Nov 2008)
New Revision: 11701

Modified:
   openlaszlo/trunk/lps/components/debugger/debugger.lzx
Log:
botched the debugger patch

Modified: openlaszlo/trunk/lps/components/debugger/debugger.lzx
===================================================================
--- openlaszlo/trunk/lps/components/debugger/debugger.lzx	2008-11-06 17:21:23 UTC (rev 11700)
+++ openlaszlo/trunk/lps/components/debugger/debugger.lzx	2008-11-06 21:05:59 UTC (rev 11701)
@@ -548,9 +548,11 @@
   <![CDATA[
        // restore persistedDataed data
        this.persistedData = LzBrowserKernel.getPersistedObject('__lzdebugger');
-       if (this.persistedData) {
+       if (this.persistedData && this.persistedData.data['commandhistory']) {
            this.commandhistory = this.persistedData.data.commandhistory;
-           this.commandhistory_ptr = this.commandhistory.length;
+           if (this.commandhistory) {
+               this.commandhistory_ptr = this.commandhistory.length;
+           }
        }
        if (this.persist && this.persistedData) {
            for (var i in this.persistedData.data) {



More information about the Laszlo-checkins mailing list