[ 
https://issues.apache.org/jira/browse/COUCHDB-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663722#action_12663722
 ] 

Sven Helmberger commented on COUCHDB-210:
-----------------------------------------

Wouldn't it be good to ship with a minimal dummy implementation of firebug's 
console API to prevent this class of errors. That could be as simple as:

if (!this.console)
{
var dummyFn = function() { };
this.console = { "debug": dummyFn, "info" : dummyFn, "error": dummyFn, "warn": 
dummyFn};
}

if you just want to swallow all console calls. you could of course just as well 
collect them and present them in some minimal way to ease debugging of problems 
within futon.

> javascript errors in Futon with firefox 3.0.5
> ---------------------------------------------
>
>                 Key: COUCHDB-210
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-210
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Administration Console
>         Environment: Debian Lenny, Iceweasel 3.0.5
>            Reporter: Robert Newson
>
> At least at svn r734360, the drop-down items to toggle between 'all 
> documents', 'design documents' and 'custom query' all fail (nothing happens). 
>  Firefox's error console shows this;
> "console is not defined" and points to line 86;
>   $("#switch select").change(function() {
>           var viewName = $(this).val();
>           console.log(viewName);  <----------- line 86
>           if (!viewName) $.cookies.remove(page.db.name + ".view");
>           location.href = "?" + encodeURIComponent(page.db.name) +
>             (viewName ? "/" + encodeURIComponent(viewName)  : "");
>         });
> Additionally, error console shows this, but I think it's unrelated;
> Warning: Expected ',' or '{' but found 'html'.  Ruleset ignored due to bad 
> selector.
> Source File: http://localhost:5984/_utils/style/layout.css?0.9.0
> Line: 217

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to