Hi guys.

I'm using Qooxdoo 3.0.1, and trying to split my Application.js. It's not 
working, and I'm probably doing (or not doing) something obvious.

In source\class\padded_online\Application.js, if I use:

var hm_5 = new qx.ui.menu.Button("Test"); fileMenu.add(hm_5);
hm_5.addListener("execute", padded_online.Dialogs.testFunction, this);

I get the error:

002126 Assertion error! Failed to add event listener for type 'execute' 
to the target 'qx.ui.menu.Button': Invalid callback function: Expected 
value to be typeof function but found 'undefined'!

If instead, I abandon the listener and try to call it directly:

padded_online.Dialogs.testFunction();

I get the error:

Uncaught TypeError: Object function ()
       {
         var clazz = wrapper;
[...]

My Dialog.js is below. It seems to be parsed by "generate.py source" okay.

All suggestions warmly welcomed.

Thanks.

====source\class\padded_online\Dialog.js====

qx.Class.define("padded_online.Dialogs",
{
   extend: padded_online.Application,
   construct: function()
   {

   },
   members :
   {
     testFunction: function()
     {
       alert("Test!");
       return;
     }
   }
});


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to