Community
Participate
Working Groups
While upgrading the JIT visualizations in the incubator, I discovered that they crash in IE and Firefox. This is because of the this.info() calls made throughout the custom widget code. The browser complains of a bad reference to console. The statements work in Chrome. Tim, what are custom widgets supposed to do about logging now?
Fixed in Object.js#debug(). We mistakenly checked for a global variable with if( console ) instead of if( window.console ). Changes are in HEAD.
(In reply to comment #0) > Tim, what are custom widgets supposed to do about logging now? We removed the client logging entirely and only left a very small implementation of the info(), warning(), etc. methods in place. The RAP client doesn't use any of them anymore. We consider logging on the client useless. For debugging purposes, you can use the console API, that is now supported by almost any browser's dev tools. For production, a widget should IMHO either work or fail fast.