Exceptions thrown in js Shindig code
------------------------------------
Key: SHINDIG-1202
URL: https://issues.apache.org/jira/browse/SHINDIG-1202
Project: Shindig
Issue Type: Bug
Components: Javascript
Environment: Safari, Chrome (Mac, Win, Linux)
Reporter: Vadim Gerasimov
The following code throws "Uncaught TypeError: Illegal invocation" exception in
gadgets running in Safari and Chrome. Other browsers are not affected. In some
cases the gadgets stop working after the exception.
...
gadgets.log.logAtLevel = function(level, message) {
if (level < gadgets.log.logLevelThreshold_ || !window.console) {
return;
}
var logger = window.console.log;
if (level == gadgets.log.WARNING && window.console.warn) {
logger = window.console.warn;
} else if (level == gadgets.log.ERROR && window.console.error) {
logger = window.console.error;
}
logger(message); // **** Exception here ****
};
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.