Opened 8 years ago
Closed 8 years ago
#16619 closed defect (invalid)
Errors when firebug is activated
Reported by: | vihugarcia | Owned by: | vihugarcia |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | General | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
I'm beginning to learn Dojo, and tried an example from de Documentation page. When Firebug is deactivated, the page loads fine and behaves as expected. But when Firebug is active, the page doesn´t load corectly. This is the code:
<!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo: dojoConfig</title> <link rel="stylesheet" href="js/dojo/dijit/themes/claro/claro.css" media="screen"> <style> #dialog { min-width: 200px; } </style> </head> <body class="claro"> <h1>Demo: dojo/_base/Config</h1> <div id="dialog" data-dojo-type="dijit.Dialog" data-dojo-props="title: 'dojo/_base/_config'"></div> <script> dojoConfig = { has: { "dojo-firebug": true }, parseOnLoad: false, baseUrl: "js", isDebug: true, // enables debug async: true, // enables AMD loader packages: [ { "name": "dojo", "location": "dojo/dojo" }, { "name": "dijit", "location": "dojo/dijit" }, { "name": "my", "location": "myWidgets" } ] } </script> <script src="js/dojo/dojo/dojo.js"></script> <script> // Require the registry, parser, Dialog, and wait for domReady require(["dijit/registry", "dojo/parser", "dojo/json", "dojo/_base/config", "dijit/Dialog","dojo/domReady!"] , function(registry, parser, JSON, config) { // Explicitly parse the page parser.parse(); // Find the dialog var dialog = registry.byId("dialog"); // Set the content equal to what dojo.config is dialog.set("content", "<pre>" + JSON.stringify(config, true) + "</pre>"); // Show the dialog dialog.show(); }); </script> </body> </html>
The errors are in the atached file. Thanks!
Attachments (1)
Change History (3)
Changed 8 years ago by
Attachment: | Errors when firebug is activated.docx added |
---|
comment:1 Changed 8 years ago by
Description: | modified (diff) |
---|---|
Owner: | set to vihugarcia |
Status: | new → pending |
It works for me.
Probably you should get rid of that
has: { "dojo-firebug": true }
I suspect it's for firebug-lite, not the actual firebug.
If not that, then you need to use the debugger to figure out what's going wrong. In the script tab drop down try setting "track throw catch".
comment:2 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Error output from firebug