Author: ptw
Date: 2007-10-23 12:09:37 -0700 (Tue, 23 Oct 2007)
New Revision: 6972

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzRuntime.lzs
Log:
Change 20071023-ptw-n by [EMAIL PROTECTED] on 2007-10-23 15:06:29 EDT
    in /Users/ptw/OpenLaszlo/ringding-2
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix misplaced brace which causes non-debug DHTML to fail

Bugs Fixed:
LPP-4739 'Printing LzDataText in Debugger is erronous for "%w"'

Technical Reviewer: [EMAIL PROTECTED] (pending)
QA Reviewer: [EMAIL PROTECTED] (pending)

Details:
    Testing with debug off reveals a type-oh in my last change

Tests:
    I can now run non-debug DHTML



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzRuntime.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzRuntime.lzs     2007-10-23 
19:03:23 UTC (rev 6971)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzRuntime.lzs     2007-10-23 
19:09:37 UTC (rev 6972)
@@ -336,36 +336,34 @@
       }
     }
   }
-}
 
-if ($as2) {
-  /**
-   * Evaluate a closure in context, ignoring any errors
-   * @param closure:Function the closure to evaluate
-   * @param context:Object the context to evaluate the closure in
-   * @param errval:* the value to return if there is an error
-   * @access private
-   */
-  Debug.ignoringErrors = function ignoringErrors (closure, context, errval) {
-#pragma "warnUndefinedReferences=false"
-      return closure.call(context);
-  }
-} else {
-  /**
-   * Evaluate a closure in context, ignoring any errors
-   * @param closure:Function the closure to evaluate
-   * @param context:Object the context to evaluate the closure in
-   * @param errval:* the value to return if there is an error
-   * @access private
-   */
-  Debug.ignoringErrors = function ignoringErrors (closure, context, errval) {
-#pragma "warnUndefinedReferences=false"
-    try {
-      return closure.call(context);
-    } catch(e) {
-      return errval;
+  if ($as2) {
+    /**
+     * Evaluate a closure in context, ignoring any errors
+     * @param closure:Function the closure to evaluate
+     * @param context:Object the context to evaluate the closure in
+     * @param errval:* the value to return if there is an error
+     * @access private
+     */
+    Debug.ignoringErrors = function ignoringErrors (closure, context, errval) {
+  #pragma "warnUndefinedReferences=false"
+        return closure.call(context);
     }
+  } else {
+    /**
+     * Evaluate a closure in context, ignoring any errors
+     * @param closure:Function the closure to evaluate
+     * @param context:Object the context to evaluate the closure in
+     * @param errval:* the value to return if there is an error
+     * @access private
+     */
+    Debug.ignoringErrors = function ignoringErrors (closure, context, errval) {
+  #pragma "warnUndefinedReferences=false"
+      try {
+        return closure.call(context);
+      } catch(e) {
+        return errval;
+      }
+    }
   }
 }
-
-


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to