Firebug has soms options like 'break on JavaScript error' and such. Maybe it's
breaking on that?
-----Oorspronkelijk bericht-----
Van: Scott Chapman
Verzonden: 21-12-2011 2:20
Aan: qoxdoo-devel
Onderwerp: [qooxdoo-devel] app is acting like a breakpoint has been set
withFirebug.
I'm using Firefox 8.0 on Ubuntu 10.04 with FireBug active, with qooxdoo 1.6.
My test app is comprised of these two classes:
qx.Class.define("foo.Application",
{
extend : qx.application.Standalone,
members :
{
main : function()
{
this.base(arguments);
// Add log appenders
if (qx.core.Environment.get("qx.debug"))
{
qx.log.appender.Native;
}
// Create main layout
var dockLayout = new qx.ui.layout.Dock();
var dockLayoutComposite = new qx.ui.container.Composite(dockLayout);
this.getRoot().add(dockLayoutComposite, {edge:0});
// Create tree view
this.__kioskTree = new foo.KioskTree();
this.__kioskTree.setWidth(250);
//this.__kioskTree.setDecorator("main");
this.__kioskTree.setPadding(0);
dockLayoutComposite.add(this.__kioskTree);
}
}
});
qx.Class.define("foo.KioskTree",
{
extend : qx.ui.tree.Tree,
construct : function()
{
this.base(arguments);
// create the controller
var controller = new qx.data.controller.Tree(null, this, "kids", "name");
var url = "http://localhost:7000/tree";
var store = new qx.data.store.Json(url);
// connect the store and the controller
store.bind("model", controller, "model");
console.log("T A");
var tree = this;
//// show the data in the list when loaded
store.addListener("loaded", function(ev) {
console.log("T B");
tree.getRoot().setOpen(true);
});
}
});
It is being served up by my web server (CherryPy static).
When I load it, Firebug shows me line 494 of Xhr.js
(this.__nativeXhr.onreadystatechange;) and wakes up the debug
single-step/continue arrows, etc. Just like I've stopped at a breakpoint. But
I didn't set any breakpoint.
When I load the app with Firebug disabled for the page, everything works fine.
Any ideas why this is happening and how to turn it off?!
The content of this email does not necessarily represent the views/opinions of
my employer, Masco Corporation. If you are not the intended recipient of this
email, please let me know since that means it got to you in error. Please
delete it from your computer system since it may contain privileged or
confidential information intended for someone else.
Masco does its best to eliminate viruses and other malicious software in emails
and attachments coming through its servers and so cannot be held responsible if
malicious software is inadvertently imbedded in this communication.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel