Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 352572 | Differences between
and this patch

Collapse All | Expand All

(-)js/org/eclipse/rwt/ErrorHandler.js (-3 / +13 lines)
Lines 59-67 Link Here
59
    },
59
    },
60
60
61
    processJavaScriptError : function( error ) {
61
    processJavaScriptError : function( error ) {
62
      var content = "<p>Javascript error occurred:</p><pre>"  + error + "</pre>";
62
      if( qx.core.Variant.isSet( "qx.debug", "on" ) ) {
63
      org.eclipse.rwt.ErrorHandler.showError( content );
63
        var content = "<p>Javascript error occurred:</p><pre>"  + error + "</pre>";
64
      throw error;
64
        org.eclipse.rwt.ErrorHandler.showError( content );
65
        throw error;
66
      } else {
67
        if( typeof console === "object" ) {
68
          if( typeof console.error === "function" ) {
69
            console.error( error );
70
          } else if( typeof console.log === "function" ) {
71
            console.log( error );
72
          }
73
        }
74
      }
65
    },
75
    },
66
76
67
    _createOverlay : function() {
77
    _createOverlay : function() {

Return to bug 352572