So the qooxdoo cought it.
I think this is bug in qooxdoo. You will probably get assistance
tomorrow morning.
To make sure that exception is thrown, you can use this:
try {
canvac.setBackgroundColor("blue");
} catch(ex) { this.debug(ex); }
Cheers
- Petr
2008/8/21 John de la Garza <[EMAIL PROTECTED]>:
> Petr Kobalí?ek wrote:
>> Interesting,
>>
>> this should throw an exception 'undefined function setDroppable()',
>> because 'canvac' should be undefined.There is possibility that you
>> silently catched the exception in catch() block.
>>
>>
>
>
> here is my code:
>
> qx.Class.define("custom.Application",
> {
> extend : qx.application.Standalone,
> members :
> {
> main: function()
> {
> this.base(arguments);
> layout = new qx.ui.layout.HBox();
> layout.setSpacing(10);
>
> var container = new qx.ui.container.Composite(layout);
> container.setPadding(20);
> this.getRoot().add(container, {left:0,top:0});
> var img = new qx.ui.basic.Image("multimedia-player.png");
> container.add(img);
> var canvas = new qx.ui.container.Composite(new qx.ui.layout.Canvas);
>
> canvac.setBackgroundColor("blue");
> canvas.setHeight(480);
> canvas.setWidth(640);
> canvas.setDroppable(true);
> container.add(canvas);
> img.setDraggable(true);
>
> img.addListener("dragstart", function(e)
> {
> e.addAction("copy");
> });
>
> canvas.addListener("drop", function(e)
> {
> this.debug("Related of droprequest: " +
> e.getRelatedTarget());
> console.log("Related of droprequest: " +
> e.getRelatedTarget());
> var action = e.getCurrentAction();
> var type = e.getCurrentType();
> var result;
> });
> }
> }
> });
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel